Skip to content

Commit 8af2c41

Browse files
Update skip condition after PHP 8.4.1 release
1 parent 9e91719 commit 8af2c41

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/unit/Framework/MockObject/TestDoubleTestCase.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use Exception;
1313
use PHPUnit\Framework\Attributes\IgnorePhpunitDeprecations;
14-
use PHPUnit\Framework\Attributes\RequiresMethod;
1514
use PHPUnit\Framework\Attributes\RequiresPhp;
1615
use PHPUnit\Framework\Attributes\TestDox;
1716
use PHPUnit\Framework\Attributes\Ticket;
@@ -26,7 +25,6 @@
2625
use PHPUnit\TestFixture\MockObject\InterfaceWithNeverReturningMethod;
2726
use PHPUnit\TestFixture\MockObject\InterfaceWithPropertyWithGetHook;
2827
use PHPUnit\TestFixture\MockObject\InterfaceWithReturnTypeDeclaration;
29-
use ReflectionProperty;
3028
use stdClass;
3129

3230
abstract class TestDoubleTestCase extends TestCase
@@ -326,7 +324,7 @@ public function testDoubledMethodsCanBeCalledFromDestructorOnTestDoubleCreatedBy
326324
);
327325
}
328326

329-
#[RequiresMethod(ReflectionProperty::class, 'isFinal')]
327+
#[RequiresPhp('^8.4')]
330328
public function testGetHookForPropertyOfInterfaceCanBeConfigured(): void
331329
{
332330
$double = $this->createTestDouble(InterfaceWithPropertyWithGetHook::class);
@@ -336,7 +334,7 @@ public function testGetHookForPropertyOfInterfaceCanBeConfigured(): void
336334
$this->assertSame('value', $double->property);
337335
}
338336

339-
#[RequiresMethod(ReflectionProperty::class, 'isFinal')]
337+
#[RequiresPhp('^8.4')]
340338
public function testGetHookForPropertyOfExtendableClassCanBeConfigured(): void
341339
{
342340
$double = $this->createTestDouble(ExtendableClassWithPropertyWithGetHook::class);

0 commit comments

Comments
 (0)