Skip to content

Commit

Permalink
Updated templates (#18)
Browse files Browse the repository at this point in the history
Updated templates
  • Loading branch information
sevidmusic committed Feb 10, 2024
2 parents 36a8ee0 + c83a0db commit 88754ca
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions templates/Interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
/**
* Description of this interface.
*
* @example
*
* ```
*
* ```
*/
interface __TARGET_CLASS_NAME__
{
Expand Down
2 changes: 2 additions & 0 deletions templates/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
use \__ROOT_NAMESPACE__\classes\__SUB_NAMESPACE__\__TARGET_CLASS_NAME__;
use \__ROOT_NAMESPACE__\tests\__BASE_TEST_NAME__;
use \__ROOT_NAMESPACE__\tests\interfaces\__SUB_NAMESPACE__\__TARGET_CLASS_NAME__TestTrait;
use \PHPUnit\Framework\Attributes\CoversClass;

#[CoversClass(__TARGET_CLASS_NAME__::class)]
class __TARGET_CLASS_NAME__Test extends __BASE_TEST_NAME__
{

Expand Down
4 changes: 3 additions & 1 deletion templates/TestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace __ROOT_NAMESPACE__\tests\interfaces\__SUB_NAMESPACE__;

use \__ROOT_NAMESPACE__\interfaces\__SUB_NAMESPACE__\__TARGET_CLASS_NAME__;
use \PHPUnit\Framework\Attributes\CoversClass;

/**
* The __TARGET_CLASS_NAME__TestTrait defines common tests for
Expand All @@ -11,6 +12,7 @@
* @see __TARGET_CLASS_NAME__
*
*/
#[CoversClass(__TARGET_CLASS_NAME__::class)]
trait __TARGET_CLASS_NAME__TestTrait
{

Expand All @@ -25,7 +27,7 @@ trait __TARGET_CLASS_NAME__TestTrait
/**
* Set up an instance of a __TARGET_CLASS_NAME__ implementation to test.
*
* This method must also set the __TARGET_CLASS_NAME__ implementation instance
* This method must set the __TARGET_CLASS_NAME__ implementation instance
* to be tested via the set__TARGET_CLASS_NAME__TestInstance() method.
*
* This method may also be used to perform any additional setup
Expand Down

0 comments on commit 88754ca

Please sign in to comment.