File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
tests/unit/Framework/MockObject Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
use Exception ;
13
13
use PHPUnit \Framework \Attributes \IgnorePhpunitDeprecations ;
14
- use PHPUnit \Framework \Attributes \RequiresMethod ;
15
14
use PHPUnit \Framework \Attributes \RequiresPhp ;
16
15
use PHPUnit \Framework \Attributes \TestDox ;
17
16
use PHPUnit \Framework \Attributes \Ticket ;
26
25
use PHPUnit \TestFixture \MockObject \InterfaceWithNeverReturningMethod ;
27
26
use PHPUnit \TestFixture \MockObject \InterfaceWithPropertyWithGetHook ;
28
27
use PHPUnit \TestFixture \MockObject \InterfaceWithReturnTypeDeclaration ;
29
- use ReflectionProperty ;
30
28
use stdClass ;
31
29
32
30
abstract class TestDoubleTestCase extends TestCase
@@ -326,7 +324,7 @@ public function testDoubledMethodsCanBeCalledFromDestructorOnTestDoubleCreatedBy
326
324
);
327
325
}
328
326
329
- #[RequiresMethod(ReflectionProperty::class, ' isFinal ' )]
327
+ #[RequiresPhp( ' ^8.4 ' )]
330
328
public function testGetHookForPropertyOfInterfaceCanBeConfigured (): void
331
329
{
332
330
$ double = $ this ->createTestDouble (InterfaceWithPropertyWithGetHook::class);
@@ -336,7 +334,7 @@ public function testGetHookForPropertyOfInterfaceCanBeConfigured(): void
336
334
$ this ->assertSame ('value ' , $ double ->property );
337
335
}
338
336
339
- #[RequiresMethod(ReflectionProperty::class, ' isFinal ' )]
337
+ #[RequiresPhp( ' ^8.4 ' )]
340
338
public function testGetHookForPropertyOfExtendableClassCanBeConfigured (): void
341
339
{
342
340
$ double = $ this ->createTestDouble (ExtendableClassWithPropertyWithGetHook::class);
You can’t perform that action at this time.
0 commit comments