Last active
March 3, 2017 19:17
-
-
Save chrisguitarguy/103944ee2d85d55508eb8c609f43e0c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @group example | |
| */ | |
| trait ExampleGroup | |
| { | |
| // utility methods here I guess? | |
| } | |
| /** | |
| * @group anotherExample | |
| */ | |
| class TestCase extends \PHPUnit\Framework\TestCase | |
| { | |
| // this doesn't work :( | |
| // use ExampleGroup; | |
| } | |
| class SomeTest extends TestCase | |
| { | |
| use ExampleGroup; | |
| public function testStuff() | |
| { | |
| $this->assertTrue(true); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment