Skip to content

Commit 34d08c0

Browse files
Merge branch '10.5' into 11.5
2 parents 220f988 + 807a55a commit 34d08c0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/unit/Util/ReflectionTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use PHPUnit\Framework\Attributes\Small;
1515
use PHPUnit\Framework\TestCase;
1616
use PHPUnit\TestFixture\BankAccountTest;
17+
use PHPUnit\TestFixture\ConcreteTestClassExtendingAbstractTestClassWithoutTestSuffixTest;
1718
use 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(

0 commit comments

Comments
 (0)