1818use  Doctrine \Persistence \Mapping \Driver \MappingDriver ;
1919use  Doctrine \Tests \Models \DDC753 \DDC753CustomRepository ;
2020use  PHPUnit \Framework \Attributes \Group ;
21+ use  PHPUnit \Framework \Attributes \IgnoreDeprecations ;
2122use  PHPUnit \Framework \Attributes \RequiresPhp ;
22- use  PHPUnit \Framework \Attributes \WithoutErrorHandler ;
2323use  PHPUnit \Framework \TestCase ;
2424use  Psr \Cache \CacheItemPoolInterface ;
2525
@@ -39,7 +39,7 @@ protected function setUp(): void
3939        $ this  ->configuration  = new  Configuration ();
4040    }
4141
42-     #[WithoutErrorHandler ]
42+     #[IgnoreDeprecations ]
4343    public  function  testSetGetProxyDir (): void 
4444    {
4545        self ::assertNull ($ this  ->configuration ->getProxyDir ()); // defaults 
@@ -48,7 +48,7 @@ public function testSetGetProxyDir(): void
4848        self ::assertSame (__DIR__ , $ this  ->configuration ->getProxyDir ());
4949    }
5050
51-     #[WithoutErrorHandler ]
51+     #[IgnoreDeprecations ]
5252    public  function  testSetGetAutoGenerateProxyClasses (): void 
5353    {
5454        self ::assertSame (ProxyFactory::AUTOGENERATE_ALWAYS , $ this  ->configuration ->getAutoGenerateProxyClasses ()); // defaults 
@@ -63,7 +63,7 @@ public function testSetGetAutoGenerateProxyClasses(): void
6363        self ::assertSame (ProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS , $ this  ->configuration ->getAutoGenerateProxyClasses ());
6464    }
6565
66-     #[WithoutErrorHandler ]
66+     #[IgnoreDeprecations ]
6767    public  function  testSetGetProxyNamespace (): void 
6868    {
6969        self ::assertNull ($ this  ->configuration ->getProxyNamespace ()); // defaults 
@@ -222,7 +222,7 @@ public function testSetGetTypedFieldMapper(): void
222222    }
223223
224224    #[RequiresPhp('8.4 ' )]
225-     #[WithoutErrorHandler ]
225+     #[IgnoreDeprecations ]
226226    public  function  testDisablingNativeLazyObjectsIsDeprecated (): void 
227227    {
228228        $ this  ->expectDeprecationWithIdentifier ('https://github.com/doctrine/orm/pull/12005 ' );
0 commit comments