|
30 | 30 | use Patchlevel\Hydrator\Tests\Unit\Fixture\ProfileCreatedWithNormalizer; |
31 | 31 | use Patchlevel\Hydrator\Tests\Unit\Fixture\ProfileCreatedWrapper; |
32 | 32 | use Patchlevel\Hydrator\Tests\Unit\Fixture\ProfileId; |
33 | | -use Patchlevel\Hydrator\Tests\Unit\Fixture\PropertyHooks; |
34 | 33 | use Patchlevel\Hydrator\Tests\Unit\Fixture\Skill; |
35 | 34 | use Patchlevel\Hydrator\Tests\Unit\Fixture\Status; |
36 | 35 | use Patchlevel\Hydrator\Tests\Unit\Fixture\StatusWithNormalizer; |
37 | 36 | use Patchlevel\Hydrator\Tests\Unit\Fixture\WrongNormalizer; |
38 | 37 | use Patchlevel\Hydrator\TypeMismatch; |
39 | | -use PHPUnit\Framework\Attributes\RequiresPhp; |
40 | 38 | use PHPUnit\Framework\TestCase; |
41 | 39 | use Prophecy\PhpUnit\ProphecyTrait; |
42 | 40 |
|
@@ -128,18 +126,6 @@ public function testExtractWithHooks(): void |
128 | 126 | self::assertEquals(['postHydrateCalled' => false, 'preExtractCalled' => true], $data); |
129 | 127 | } |
130 | 128 |
|
131 | | - #[RequiresPhp('8.4')] |
132 | | - public function testExtractWithPropertyHooks(): void |
133 | | - { |
134 | | - $data = $this->hydrator->extract(new PropertyHooks('David', 'Badura')); |
135 | | - |
136 | | - self::assertEquals([ |
137 | | - 'firstName' => 'David', |
138 | | - 'lastName' => 'Badura', |
139 | | - 'fullName' => 'David Badura', |
140 | | - ], $data); |
141 | | - } |
142 | | - |
143 | 129 | public function testHydrate(): void |
144 | 130 | { |
145 | 131 | $expected = new ProfileCreated( |
@@ -392,18 +378,4 @@ public function testHydrateWithHooks(): void |
392 | 378 | self::assertEquals(true, $object->postHydrateCalled); |
393 | 379 | self::assertEquals(false, $object->preExtractCalled); |
394 | 380 | } |
395 | | - |
396 | | - #[RequiresPhp('8.4')] |
397 | | - public function testHydrateWithPropertyHooks(): void |
398 | | - { |
399 | | - $object = $this->hydrator->hydrate(PropertyHooks::class, [ |
400 | | - 'firstName' => 'David', |
401 | | - 'lastName' => 'Badura', |
402 | | - ]); |
403 | | - |
404 | | - self::assertEquals(new PropertyHooks( |
405 | | - 'David', |
406 | | - 'Badura', |
407 | | - ), $object); |
408 | | - } |
409 | 381 | } |
0 commit comments