Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated templates #18

Merged
merged 2 commits into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading