From 5e2f32e1525d6a11ae3cab61d10def2ad20e3e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20Eugon=C3=A9?= Date: Wed, 6 Dec 2023 09:25:41 +0100 Subject: [PATCH] Removed deprecation test --- .../tests/DoctrineDBALJobExecutionStorageTest.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/batch-doctrine-dbal/tests/DoctrineDBALJobExecutionStorageTest.php b/src/batch-doctrine-dbal/tests/DoctrineDBALJobExecutionStorageTest.php index 69f7e9a9..1387b70d 100644 --- a/src/batch-doctrine-dbal/tests/DoctrineDBALJobExecutionStorageTest.php +++ b/src/batch-doctrine-dbal/tests/DoctrineDBALJobExecutionStorageTest.php @@ -345,16 +345,6 @@ public function queries(): Generator public function testCreateSchemaDeprecated(): void { - \set_error_handler( - static function () { - \restore_error_handler(); - throw new \Exception('Deprecation caught'); - }, - E_DEPRECATED, - ); - $this->expectException(\Exception::class); - $this->expectExceptionMessageMatches('Deprecation caught'); - $storage = $this->createStorage(); $storage->createSchema(); }