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 bc7cad4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
6 changes: 0 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ credentials in the connection string (i.e. `MONGODB_URI`) or set the
Note that `MONGODB_USERNAME` and `MONGODB_PASSWORD` will override any
credentials present in the connection string.

To run tests use the `phpunit` executable installed by Composer:

```console
$ vendor/bin/phpunit
```

### Environment Variables

The test suite references the following environment variables:
Expand Down
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 bc7cad4

Please sign in to comment.