File tree 2 files changed +1
-18
lines changed 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,6 @@ credentials in the connection string (i.e. `MONGODB_URI`) or set the
43
43
Note that ` MONGODB_USERNAME ` and ` MONGODB_PASSWORD ` will override any
44
44
credentials present in the connection string.
45
45
46
- To run tests use the ` phpunit ` executable installed by Composer:
47
-
48
- ``` console
49
- $ vendor/bin/phpunit
50
- ```
51
-
52
46
### Environment Variables
53
47
54
48
The test suite references the following environment variables:
Original file line number Diff line number Diff line change 5
5
use Generator ;
6
6
7
7
use function bin2hex ;
8
- use function error_reporting ;
9
8
use function getenv ;
10
9
use function putenv ;
11
10
use function random_bytes ;
12
11
use function sprintf ;
13
12
14
- use const E_ALL ;
15
- use const E_DEPRECATED ;
16
-
17
13
/** @runTestsInSeparateProcesses */
18
14
final class ExamplesTest extends FunctionalTestCase
19
15
{
@@ -308,14 +304,7 @@ public function testWithTransaction(): void
308
304
309
305
private function assertExampleOutput (string $ file , string $ expectedOutput ): void
310
306
{
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 ;
319
308
320
309
$ this ->assertStringMatchesFormat ($ expectedOutput , $ this ->getActualOutputForAssertion ());
321
310
}
You can’t perform that action at this time.
0 commit comments