diff --git a/src/Symfony/Component/ObjectMapper/Tests/Fixtures/LazyFoo.php b/src/Symfony/Component/ObjectMapper/Tests/Fixtures/LazyFoo.php deleted file mode 100644 index e8bb45e26d2c..000000000000 --- a/src/Symfony/Component/ObjectMapper/Tests/Fixtures/LazyFoo.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\ObjectMapper\Tests\Fixtures; - -use Symfony\Component\VarExporter\LazyGhostTrait; -use Symfony\Component\VarExporter\LazyObjectInterface; - -class LazyFoo extends \stdClass implements LazyObjectInterface -{ - use LazyGhostTrait; - - public string $name = 'foo'; -} diff --git a/src/Symfony/Component/ObjectMapper/Tests/ObjectMapperTest.php b/src/Symfony/Component/ObjectMapper/Tests/ObjectMapperTest.php index ccea0c320e53..a7322b746977 100644 --- a/src/Symfony/Component/ObjectMapper/Tests/ObjectMapperTest.php +++ b/src/Symfony/Component/ObjectMapper/Tests/ObjectMapperTest.php @@ -41,7 +41,6 @@ use Symfony\Component\ObjectMapper\Tests\Fixtures\InstanceCallback\B as InstanceCallbackB; use Symfony\Component\ObjectMapper\Tests\Fixtures\InstanceCallbackWithArguments\A as InstanceCallbackWithArgumentsA; use Symfony\Component\ObjectMapper\Tests\Fixtures\InstanceCallbackWithArguments\B as InstanceCallbackWithArgumentsB; -use Symfony\Component\ObjectMapper\Tests\Fixtures\LazyFoo; use Symfony\Component\ObjectMapper\Tests\Fixtures\MapStruct\AToBMapper; use Symfony\Component\ObjectMapper\Tests\Fixtures\MapStruct\MapStructMapperMetadataFactory; use Symfony\Component\ObjectMapper\Tests\Fixtures\MapStruct\Source; @@ -371,14 +370,6 @@ public static function objectMapperProvider(): iterable yield [new ObjectMapper(new ReflectionObjectMapperMetadataFactory(), PropertyAccess::createPropertyAccessor())]; } - public function testMapInitializesLazyObject() - { - $lazy = new LazyFoo(); - $mapper = new ObjectMapper(); - $mapper->map($lazy, \stdClass::class); - $this->assertTrue($lazy->isLazyObjectInitialized()); - } - public function testMapInitializesNativePhp84LazyObject() { $initialized = false;
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: