File tree Expand file tree Collapse file tree 13 files changed +64
-2
lines changed
_files/listing-tests-and-groups Expand file tree Collapse file tree 13 files changed +64
-2
lines changed Original file line number Diff line number Diff line change 105
105
" tests/unit/Framework/Assert/assertSameTest.php" ,
106
106
" tests/_files/CoveredFunction.php" ,
107
107
" tests/_files/Generator.php" ,
108
- " tests/_files/NamespaceCoveredFunction.php"
108
+ " tests/_files/NamespaceCoveredFunction.php" ,
109
+ " tests/end-to-end/_files/listing-tests-and-groups/ExampleAbstractTestCase.php"
109
110
]
110
111
},
111
112
"extra" : {
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types=1 );
2
+ /*
3
+ * This file is part of PHPUnit.
4
+ *
5
+ * (c) Sebastian Bergmann <sebastian@phpunit.de>
6
+ *
7
+ * For the full copyright and license information, please view the LICENSE
8
+ * file that was distributed with this source code.
9
+ */
10
+ namespace PHPUnit \TestFixture \ListingTestsAndGroups ;
11
+
12
+ use PHPUnit \Framework \Attributes \Group ;
13
+ use PHPUnit \Framework \TestCase ;
14
+
15
+ abstract class ExampleAbstractTestCase extends TestCase
16
+ {
17
+ #[Group('abstract-one ' )]
18
+ public function testOne (): void
19
+ {
20
+ $ this ->assertTrue (true );
21
+ }
22
+ }
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types=1 );
2
+ /*
3
+ * This file is part of PHPUnit.
4
+ *
5
+ * (c) Sebastian Bergmann <sebastian@phpunit.de>
6
+ *
7
+ * For the full copyright and license information, please view the LICENSE
8
+ * file that was distributed with this source code.
9
+ */
10
+ namespace PHPUnit \TestFixture \ListingTestsAndGroups ;
11
+
12
+ final class ExampleExtendingAbstractTest extends ExampleAbstractTestCase
13
+ {
14
+ }
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ require_once __DIR__ . '/../../../bootstrap.php';
14
14
PHPUnit %s by Sebastian Bergmann and contributors.
15
15
16
16
Available test files:
17
+ - %slisting-tests-and-groups%sExampleExtendingAbstractTest.php
17
18
- %slisting-tests-and-groups%sExampleTest.php
18
19
- %slisting-tests-and-groups%sexample.phpt
Original file line number Diff line number Diff line change @@ -12,5 +12,6 @@ require_once __DIR__ . '/../../../bootstrap.php';
12
12
PHPUnit %s by Sebastian Bergmann and contributors.
13
13
14
14
Available test files:
15
+ - %slisting-tests-and-groups%sExampleExtendingAbstractTest.php
15
16
- %slisting-tests-and-groups%sExampleTest.php
16
17
- %slisting-tests-and-groups%sexample.phpt
Original file line number Diff line number Diff line change @@ -17,5 +17,6 @@ PHPUnit %s by Sebastian Bergmann and contributors.
17
17
18
18
Available test groups:
19
19
- 3 (1 test)
20
+ - abstract-one (1 test)
20
21
- default (1 test)
21
22
- two (1 test)
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ PHPUnit %s by Sebastian Bergmann and contributors.
15
15
16
16
Available test groups:
17
17
- 3 (1 test)
18
+ - abstract-one (1 test)
18
19
- default (1 test)
19
20
- one (1 test)
20
21
- two (1 test)
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ require_once __DIR__ . '/../../../bootstrap.php';
16
16
PHPUnit %s by Sebastian Bergmann and contributors.
17
17
18
18
Available tests:
19
+ - PHPUnit \TestFixture \ListingTestsAndGroups \ExampleExtendingAbstractTest::testOne
19
20
- PHPUnit \TestFixture \ListingTestsAndGroups \ExampleTest::testTwo
20
21
- PHPUnit \TestFixture \ListingTestsAndGroups \ExampleTest::testThree
21
22
- %sexample.phpt
Original file line number Diff line number Diff line change @@ -15,5 +15,6 @@ require_once __DIR__ . '/../../../bootstrap.php';
15
15
--EXPECTF --
16
16
PHPUnit %s by Sebastian Bergmann and contributors.
17
17
18
- Available test:
18
+ Available tests:
19
+ - PHPUnit \TestFixture \ListingTestsAndGroups \ExampleExtendingAbstractTest::testOne
19
20
- PHPUnit \TestFixture \ListingTestsAndGroups \ExampleTest::testOne
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ PHPUnit %s by Sebastian Bergmann and contributors.
19
19
<? xml version="1.0 "?>
20
20
<testSuite xmlns="https://xml.phpunit.de/testSuite">
21
21
<tests>
22
+ <testClass name="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleExtendingAbstractTest" file="%ExampleExtendingAbstractTest.php">
23
+ <testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleExtendingAbstractTest::testOne" name="testOne"/>
24
+ </testClass>
22
25
<testClass name="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest" file="%sExampleTest.php">
23
26
<testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testTwo" name="testTwo"/>
24
27
<testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testThree" name="testThree"/>
@@ -29,6 +32,9 @@ PHPUnit %s by Sebastian Bergmann and contributors.
29
32
<group name="3">
30
33
<test id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testThree"/>
31
34
</group>
35
+ <group name="abstract-one">
36
+ <test id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleExtendingAbstractTest::testOne"/>
37
+ </group>
32
38
<group name="two">
33
39
<test id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testTwo"/>
34
40
</group>
Original file line number Diff line number Diff line change @@ -19,11 +19,17 @@ PHPUnit %s by Sebastian Bergmann and contributors.
19
19
<? xml version="1.0 "?>
20
20
<testSuite xmlns="https://xml.phpunit.de/testSuite">
21
21
<tests>
22
+ <testClass name="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleExtendingAbstractTest" file="%ExampleExtendingAbstractTest.php">
23
+ <testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleExtendingAbstractTest::testOne" name="testOne"/>
24
+ </testClass>
22
25
<testClass name="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest" file="%sExampleTest.php">
23
26
<testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testOne" name="testOne"/>
24
27
</testClass>
25
28
</tests>
26
29
<groups>
30
+ <group name="abstract-one">
31
+ <test id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleExtendingAbstractTest::testOne"/>
32
+ </group>
27
33
<group name="one">
28
34
<test id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testOne"/>
29
35
</group>
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ PHPUnit %s by Sebastian Bergmann and contributors.
18
18
<? xml version="1.0 "?>
19
19
<testSuite xmlns="https://xml.phpunit.de/testSuite">
20
20
<tests>
21
+ <testClass name="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleExtendingAbstractTest" file="%ExampleExtendingAbstractTest.php">
22
+ <testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleExtendingAbstractTest::testOne" name="testOne"/>
23
+ </testClass>
21
24
<testClass name="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest" file="%sExampleTest.php">
22
25
<testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testOne" name="testOne"/>
23
26
<testMethod id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testTwo" name="testTwo"/>
@@ -29,6 +32,9 @@ PHPUnit %s by Sebastian Bergmann and contributors.
29
32
<group name="3">
30
33
<test id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testThree"/>
31
34
</group>
35
+ <group name="abstract-one">
36
+ <test id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleExtendingAbstractTest::testOne"/>
37
+ </group>
32
38
<group name="one">
33
39
<test id="PHPUnit\TestFixture\ListingTestsAndGroups\ExampleTest::testOne"/>
34
40
</group>
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ require_once __DIR__ . '/../../../bootstrap.php';
14
14
PHPUnit %s by Sebastian Bergmann and contributors.
15
15
16
16
Available tests:
17
+ - PHPUnit \TestFixture \ListingTestsAndGroups \ExampleExtendingAbstractTest::testOne
17
18
- PHPUnit \TestFixture \ListingTestsAndGroups \ExampleTest::testOne
18
19
- PHPUnit \TestFixture \ListingTestsAndGroups \ExampleTest::testTwo
19
20
- PHPUnit \TestFixture \ListingTestsAndGroups \ExampleTest::testThree
You can’t perform that action at this time.
0 commit comments