Skip to content

Commit d885541

Browse files
committed
[ObjectMapper] Remove deprecated LazyGhostTrait test in favor of native lazy object coverage
1 parent 474bd79 commit d885541

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

src/Symfony/Component/ObjectMapper/Tests/Fixtures/LazyFoo.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Symfony/Component/ObjectMapper/Tests/ObjectMapperTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
use Symfony\Component\ObjectMapper\Tests\Fixtures\InstanceCallback\B as InstanceCallbackB;
4242
use Symfony\Component\ObjectMapper\Tests\Fixtures\InstanceCallbackWithArguments\A as InstanceCallbackWithArgumentsA;
4343
use Symfony\Component\ObjectMapper\Tests\Fixtures\InstanceCallbackWithArguments\B as InstanceCallbackWithArgumentsB;
44-
use Symfony\Component\ObjectMapper\Tests\Fixtures\LazyFoo;
4544
use Symfony\Component\ObjectMapper\Tests\Fixtures\MapStruct\AToBMapper;
4645
use Symfony\Component\ObjectMapper\Tests\Fixtures\MapStruct\MapStructMapperMetadataFactory;
4746
use Symfony\Component\ObjectMapper\Tests\Fixtures\MapStruct\Source;
@@ -371,14 +370,6 @@ public static function objectMapperProvider(): iterable
371370
yield [new ObjectMapper(new ReflectionObjectMapperMetadataFactory(), PropertyAccess::createPropertyAccessor())];
372371
}
373372

374-
public function testMapInitializesLazyObject()
375-
{
376-
$lazy = new LazyFoo();
377-
$mapper = new ObjectMapper();
378-
$mapper->map($lazy, \stdClass::class);
379-
$this->assertTrue($lazy->isLazyObjectInitialized());
380-
}
381-
382373
public function testMapInitializesNativePhp84LazyObject()
383374
{
384375
$initialized = false;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy