Skip to content

Instantly share code, notes, and snippets.

@chrisguitarguy
Last active March 3, 2017 19:17
Show Gist options
  • Select an option

  • Save chrisguitarguy/103944ee2d85d55508eb8c609f43e0c0 to your computer and use it in GitHub Desktop.

Select an option

Save chrisguitarguy/103944ee2d85d55508eb8c609f43e0c0 to your computer and use it in GitHub Desktop.
<?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