Skip to content

Commit 0df16b8

Browse files
Schranksebastianbergmann
authored andcommitted
Add PHPT test case to test --list-tests --test-tests-xml and --list-groups about PHPT
1 parent e2916ae commit 0df16b8

File tree

6 files changed

+9
-0
lines changed

6 files changed

+9
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--TEST--
2+
This is an example PHPT test, this file is never executed!
3+
--FILE--
4+
--EXPECT--

tests/end-to-end/cli/listing-tests-and-groups/list-groups.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ require_once __DIR__ . '/../../../bootstrap.php';
1414
PHPUnit %s by Sebastian Bergmann and contributors.
1515

1616
Available test group(s):
17+
- default
1718
- one
1819
- two

tests/end-to-end/cli/listing-tests-and-groups/list-tests-exclude-group.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ PHPUnit %s by Sebastian Bergmann and contributors.
1717

1818
Available test(s):
1919
- PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testTwo
20+
- %stests/end-to-end/_files/listing-tests-and-groups/example.phpt

tests/end-to-end/cli/listing-tests-and-groups/list-tests-xml-exclude-group.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
2222
<testClass name="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest" file="%sExampleTest.php">
2323
<testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testTwo" name="testTwo"/>
2424
</testClass>
25+
<phpt file="%stests/end-to-end/_files/listing-tests-and-groups/example.phpt"/>
2526
</tests>
2627
<groups>
2728
<group name="two">

tests/end-to-end/cli/listing-tests-and-groups/list-tests-xml.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
2222
<testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testOne" name="testOne"/>
2323
<testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testTwo" name="testTwo"/>
2424
</testClass>
25+
<phpt file="%stests/end-to-end/_files/listing-tests-and-groups/example.phpt"/>
2526
</tests>
2627
<groups>
2728
<group name="one">

tests/end-to-end/cli/listing-tests-and-groups/list-tests.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ PHPUnit %s by Sebastian Bergmann and contributors.
1616
Available test(s):
1717
- PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testOne
1818
- PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testTwo
19+
- %stests/end-to-end/_files/listing-tests-and-groups/example.phpt

0 commit comments

Comments
 (0)