@group
A test can be tagged as belonging to one or more groups using the @group
annotation like this
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | use PHPUnit\Framework\TestCase; class MyTest extends TestCase { /** * @group specification */ public function testSomething() { } /** * @group regresssion * @group bug2204 */ public function testSomethingElse() { } } |
Tests can be selected for execution based on groups using the --group
and --exclude-group
options of the command-line test runner or using the respective directives of the XML configuration file.
Please login to continue.