2727use LogicException ;
2828use PDO ;
2929use PHPUnit \Framework \Attributes \DataProvider ;
30- use PHPUnit \Framework \Attributes \WithoutErrorHandler ;
30+ use PHPUnit \Framework \Attributes \IgnoreDeprecations ;
3131use PHPUnit \Framework \TestCase ;
3232use Symfony \Bridge \Doctrine \DependencyInjection \CompilerPass \RegisterEventListenersAndSubscribersPass ;
3333use Symfony \Bundle \DoctrineBundle \Tests \DependencyInjection \TestHydrator ;
@@ -145,7 +145,7 @@ public function testDbalLoadFromXmlSingleConnections(): void
145145 $ this ->assertEquals ('9.4.0 ' , $ config ['serverVersion ' ]);
146146 }
147147
148- #[WithoutErrorHandler ]
148+ #[IgnoreDeprecations ]
149149 public function testDbalLoadUrlOverride (): void
150150 {
151151 $ container = $ this ->loadContainer ('dbal_allow_url_override ' );
@@ -166,7 +166,7 @@ public function testDbalLoadUrlOverride(): void
166166 $ this ->assertFalse (isset ($ config ['override_url ' ]));
167167 }
168168
169- #[WithoutErrorHandler ]
169+ #[IgnoreDeprecations ]
170170 public function testDbalLoadPartialUrlOverrideSetsDefaults (): void
171171 {
172172 $ container = $ this ->loadContainer ('dbal_allow_partial_url_override ' );
@@ -280,7 +280,7 @@ public function testDbalLoadDisableTypeComments(): void
280280 $ this ->assertCount (0 , $ calls );
281281 }
282282
283- #[WithoutErrorHandler ]
283+ #[IgnoreDeprecations ]
284284 public function testDbalSchemaManagerFactory (): void
285285 {
286286 $ container = $ this ->loadContainer ('dbal_schema_manager_factory ' );
@@ -720,7 +720,7 @@ public function testSetTypedFieldMapper(): void
720720 }
721721
722722 #[DataProvider('cacheConfigProvider ' )]
723- #[WithoutErrorHandler ]
723+ #[IgnoreDeprecations ]
724724 public function testCacheConfig (string |null $ expectedClass , string $ entityManagerName , string |null $ cacheGetter ): void
725725 {
726726 if (! interface_exists (EntityManagerInterface::class)) {
@@ -1168,7 +1168,7 @@ public function testDbalSchemaFilterNewConfig(): void
11681168 }
11691169 }
11701170
1171- #[WithoutErrorHandler ]
1171+ #[IgnoreDeprecations ]
11721172 public function testWellKnownSchemaFilterDefaultTables (): void
11731173 {
11741174 $ container = $ this ->getContainer ([]);
@@ -1191,7 +1191,7 @@ public function testWellKnownSchemaFilterDefaultTables(): void
11911191 $ this ->assertTrue ($ filter ->__invoke ('anything_else ' ));
11921192 }
11931193
1194- #[WithoutErrorHandler ]
1194+ #[IgnoreDeprecations ]
11951195 public function testWellKnownSchemaFilterOverriddenTables (): void
11961196 {
11971197 $ container = $ this ->getContainer ([]);
@@ -1429,7 +1429,7 @@ public function testDisableSchemaValidation(): void
14291429 $ this ->assertFalse ($ collectorDefinition ->getArguments ()[1 ]);
14301430 }
14311431
1432- #[WithoutErrorHandler ]
1432+ #[IgnoreDeprecations ]
14331433 public function testNativeLazyObjectsWithoutConfig (): void
14341434 {
14351435 if (! interface_exists (EntityManagerInterface::class)) {
@@ -1470,7 +1470,7 @@ public function testNativeLazyObjectsWithConfigTrue(): void
14701470 $ this ->assertTrue ($ entityManager ->getConfiguration ()->isNativeLazyObjectsEnabled ());
14711471 }
14721472
1473- #[WithoutErrorHandler ]
1473+ #[IgnoreDeprecations ]
14741474 public function testNativeLazyObjectsWithConfigFalse (): void
14751475 {
14761476 if (! interface_exists (EntityManagerInterface::class)) {
0 commit comments