File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1414use PHPUnit \Framework \Attributes \Small ;
1515use PHPUnit \Framework \TestCase ;
1616use PHPUnit \TestFixture \BankAccountTest ;
17+ use PHPUnit \TestFixture \ConcreteTestClassExtendingAbstractTestClassWithoutTestSuffixTest ;
1718use ReflectionClass ;
1819
1920#[CoversClass(Reflection::class)]
@@ -31,6 +32,17 @@ public function testFindsSourceLocationForMethod(): void
3132 );
3233 }
3334
35+ public function testFindsSourceLocationForMethodInAbstractTestCase (): void
36+ {
37+ $ this ->assertSame (
38+ [
39+ 'file ' => realpath (__DIR__ . '/../../_files/abstract/without-test-suffix/AbstractTestCase.php ' ),
40+ 'line ' => 16 ,
41+ ],
42+ Reflection::sourceLocationFor (ConcreteTestClassExtendingAbstractTestClassWithoutTestSuffixTest::class, 'testOne ' ),
43+ );
44+ }
45+
3446 public function testReturnsUnknownSourceLocationForMethodThatDoesNotExist (): void
3547 {
3648 $ this ->assertSame (
You can’t perform that action at this time.
0 commit comments