88use Doctrine \ORM \EntityManagerInterface ;
99use Doctrine \ORM \Tools \Export \ClassMetadataExporter ;
1010use InvalidArgumentException ;
11- use PHPUnit \Framework \Attributes \WithoutErrorHandler ;
11+ use PHPUnit \Framework \Attributes \IgnoreDeprecations ;
1212use PHPUnit \Framework \TestCase ;
1313use Symfony \Bundle \FrameworkBundle \Console \Application ;
1414use Symfony \Component \Console \Tester \CommandTester ;
@@ -68,7 +68,7 @@ protected function tearDown(): void
6868 unset($ this ->kernel , $ this ->commandTester );
6969 }
7070
71- #[WithoutErrorHandler ]
71+ #[IgnoreDeprecations ]
7272 public function testExecuteXmlWithBundle (): void
7373 {
7474 $ this ->commandTester ->execute (['name ' => 'ImportMappingTestFooBundle ' ]);
@@ -82,7 +82,7 @@ public function testExecuteXmlWithBundle(): void
8282 );
8383 }
8484
85- #[WithoutErrorHandler ]
85+ #[IgnoreDeprecations ]
8686 public function testExecuteAnnotationsWithBundle (): void
8787 {
8888 $ this ->commandTester ->execute ([
@@ -99,15 +99,15 @@ public function testExecuteAnnotationsWithBundle(): void
9999 );
100100 }
101101
102- #[WithoutErrorHandler ]
102+ #[IgnoreDeprecations ]
103103 public function testExecuteThrowsExceptionWithNamespaceAndNoPath (): void
104104 {
105105 $ this ->expectException (InvalidArgumentException::class);
106106 $ this ->expectExceptionMessage ('The --path option is required ' );
107107 $ this ->commandTester ->execute (['name ' => 'Some\Namespace ' ]);
108108 }
109109
110- #[WithoutErrorHandler ]
110+ #[IgnoreDeprecations ]
111111 public function testExecuteXmlWithNamespace (): void
112112 {
113113 $ this ->commandTester ->execute ([
@@ -124,7 +124,7 @@ public function testExecuteXmlWithNamespace(): void
124124 );
125125 }
126126
127- #[WithoutErrorHandler ]
127+ #[IgnoreDeprecations ]
128128 public function testExecuteAnnotationsWithNamespace (): void
129129 {
130130 $ this ->commandTester ->execute ([
0 commit comments