From 6e8cdd44896162802df32c98e982d2b0fd2799ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Wed, 18 Sep 2024 22:48:49 +0200 Subject: [PATCH] Revert hidding warnings in examples --- tests/ExamplesTest.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/ExamplesTest.php b/tests/ExamplesTest.php index 7053e29f9..bca9e3a02 100644 --- a/tests/ExamplesTest.php +++ b/tests/ExamplesTest.php @@ -308,14 +308,7 @@ public function testWithTransaction(): void private function assertExampleOutput(string $file, string $expectedOutput): void { - // Hide deprecation messages - $level = error_reporting(E_ALL ^ E_DEPRECATED); - - try { - require $file; - } finally { - error_reporting($level); - } + require $file; $this->assertStringMatchesFormat($expectedOutput, $this->getActualOutputForAssertion()); }