Skip to content

Commit

Permalink
Revert hidding warnings in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Sep 18, 2024
1 parent cd78a47 commit 6e8cdd4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/ExamplesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 6e8cdd4

Please sign in to comment.