diff --git a/tests/end-to-end/_files/groups/phpunit.xml b/tests/end-to-end/_files/groups/phpunit.xml new file mode 100644 index 00000000000..8b2df97afce --- /dev/null +++ b/tests/end-to-end/_files/groups/phpunit.xml @@ -0,0 +1,10 @@ + + + + + tests + + + diff --git a/tests/end-to-end/_files/groups/tests/FooTest.php b/tests/end-to-end/_files/groups/tests/FooTest.php new file mode 100644 index 00000000000..818255ee197 --- /dev/null +++ b/tests/end-to-end/_files/groups/tests/FooTest.php @@ -0,0 +1,36 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace PHPUnit\TestFixture\Groups; + +use PHPUnit\Framework\TestCase; + +final class FooTest extends TestCase +{ + /** + * @group one + */ + public function testOne(): void + { + $this->assertTrue(true); + } + + /** + * @group two + */ + public function testTwo(): void + { + $this->assertTrue(true); + } + + public function testThree(): void + { + $this->assertTrue(true); + } +} diff --git a/tests/end-to-end/cli/exclude-group.phpt b/tests/end-to-end/cli/exclude-group-argument.phpt similarity index 51% rename from tests/end-to-end/cli/exclude-group.phpt rename to tests/end-to-end/cli/exclude-group-argument.phpt index 748dd96425c..8e9ec125237 100644 --- a/tests/end-to-end/cli/exclude-group.phpt +++ b/tests/end-to-end/cli/exclude-group-argument.phpt @@ -1,20 +1,23 @@ --TEST-- -phpunit --exclude-group balanceIsInitiallyZero ../../_files/BankAccountTest.php +phpunit --exclude-group one,two tests/FooTest.php --FILE--