Skip to content

Commit 3ce4d6a

Browse files
committed
Revert hidding warnings in examples
1 parent cd78a47 commit 3ce4d6a

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ credentials in the connection string (i.e. `MONGODB_URI`) or set the
4343
Note that `MONGODB_USERNAME` and `MONGODB_PASSWORD` will override any
4444
credentials present in the connection string.
4545

46-
To run tests use the `phpunit` executable installed by Composer:
47-
48-
```console
49-
$ vendor/bin/phpunit
50-
```
51-
5246
### Environment Variables
5347

5448
The test suite references the following environment variables:

tests/ExamplesTest.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
use Generator;
66

77
use function bin2hex;
8-
use function error_reporting;
98
use function getenv;
109
use function putenv;
1110
use function random_bytes;
1211
use function sprintf;
1312

14-
use const E_ALL;
15-
use const E_DEPRECATED;
16-
1713
/** @runTestsInSeparateProcesses */
1814
final class ExamplesTest extends FunctionalTestCase
1915
{
@@ -308,14 +304,7 @@ public function testWithTransaction(): void
308304

309305
private function assertExampleOutput(string $file, string $expectedOutput): void
310306
{
311-
// Hide deprecation messages
312-
$level = error_reporting(E_ALL ^ E_DEPRECATED);
313-
314-
try {
315-
require $file;
316-
} finally {
317-
error_reporting($level);
318-
}
307+
require $file;
319308

320309
$this->assertStringMatchesFormat($expectedOutput, $this->getActualOutputForAssertion());
321310
}

0 commit comments

Comments
 (0)