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 14
14
use PHPUnit \Framework \Attributes \Small ;
15
15
use PHPUnit \Framework \TestCase ;
16
16
use PHPUnit \TestFixture \BankAccountTest ;
17
+ use PHPUnit \TestFixture \ConcreteTestClassExtendingAbstractTestClassWithoutTestSuffixTest ;
17
18
use ReflectionClass ;
18
19
19
20
#[CoversClass(Reflection::class)]
@@ -31,6 +32,17 @@ public function testFindsSourceLocationForMethod(): void
31
32
);
32
33
}
33
34
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
+
34
46
public function testReturnsUnknownSourceLocationForMethodThatDoesNotExist (): void
35
47
{
36
48
$ this ->assertSame (
You can’t perform that action at this time.
0 commit comments