File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -860,6 +860,9 @@ public function testDanglingOpenWritableStream(): void
860
860
$ code = <<<'PHP'
861
861
require '%s';
862
862
require '%s';
863
+ // Don't report deprecations - if the issue exists this code will
864
+ // result in a fatal error
865
+ error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
863
866
$client = MongoDB\Tests\FunctionalTestCase::createTestClient();
864
867
$database = $client->selectDatabase(getenv('MONGODB_DATABASE') ?: 'phplib_test');
865
868
$gridfs = $database->selectGridFSBucket();
@@ -903,6 +906,9 @@ public function testDanglingOpenWritableStreamWithGlobalStreamWrapperAlias(): vo
903
906
$ code = <<<'PHP'
904
907
require '%s';
905
908
require '%s';
909
+ // Don't report deprecations - if the issue exists this code will
910
+ // result in a fatal error
911
+ error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
906
912
$client = MongoDB\Tests\FunctionalTestCase::createTestClient();
907
913
$database = $client->selectDatabase(getenv('MONGODB_DATABASE') ?: 'phplib_test');
908
914
$database->selectGridFSBucket()->registerGlobalStreamWrapperAlias('alias');
You can’t perform that action at this time.
0 commit comments