2626use PDO ;
2727use PHPUnit \Framework \Attributes \DataProvider ;
2828use PHPUnit \Framework \Attributes \IgnoreDeprecations ;
29- use PHPUnit \Framework \Attributes \RequiresMethod ;
3029use PHPUnit \Framework \TestCase ;
3130use Symfony \Bridge \Doctrine \DependencyInjection \CompilerPass \RegisterEventListenersAndSubscribersPass ;
3231use Symfony \Bundle \DoctrineBundle \Tests \DependencyInjection \TestHydrator ;
4140use Symfony \Component \DependencyInjection \Reference ;
4241use Symfony \Component \DependencyInjection \ServiceLocator ;
4342use Symfony \Component \Security \Core \User \UserInterface ;
44- use Symfony \Component \VarExporter \ProxyHelper ;
4543
4644use function array_filter ;
4745use function array_keys ;
@@ -1186,7 +1184,6 @@ public function testDisableSchemaValidation(): void
11861184 $ this ->assertFalse ($ collectorDefinition ->getArguments ()[1 ]);
11871185 }
11881186
1189- #[RequiresMethod(ProxyHelper::class, 'generateLazyGhost ' )]
11901187 public function testNativeLazyObjectsWithoutConfig (): void
11911188 {
11921189 if (! interface_exists (EntityManagerInterface::class)) {
@@ -1211,15 +1208,14 @@ public function testNativeLazyObjectsWithConfigTrue(): void
12111208 $ this ->assertTrue ($ entityManager ->getConfiguration ()->isNativeLazyObjectsEnabled ());
12121209 }
12131210
1214- #[RequiresMethod(ProxyHelper::class, 'generateLazyGhost ' )]
12151211 public function testNativeLazyObjectsWithConfigFalse (): void
12161212 {
12171213 if (! interface_exists (EntityManagerInterface::class)) {
12181214 self ::markTestSkipped ('This test requires ORM ' );
12191215 }
12201216
12211217 $ this ->expectException (InvalidConfigurationException::class);
1222- $ container = $ this ->loadContainer ('orm_native_lazy_objects_disable ' );
1218+ $ this ->loadContainer ('orm_native_lazy_objects_disable ' );
12231219 }
12241220
12251221 /** @param list<string> $bundles */
0 commit comments