File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Tests/Session/Storage/Handler Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1313
1414use MongoDB \Client ;
1515use PHPUnit \Framework \MockObject \MockObject ;
16+ use PHPUnit \Framework \SkippedTestSuiteError ;
1617use PHPUnit \Framework \TestCase ;
1718use Symfony \Component \HttpFoundation \Session \Storage \Handler \MongoDbSessionHandler ;
1819
@@ -32,13 +33,16 @@ class MongoDbSessionHandlerTest extends TestCase
3233 private $ storage ;
3334 public $ options ;
3435
35- protected function setUp (): void
36+ public static function setUpBeforeClass (): void
3637 {
37- parent ::setUp ();
38-
3938 if (!class_exists (Client::class)) {
40- $ this -> markTestSkipped ('The mongodb/mongodb package is required. ' );
39+ throw new SkippedTestSuiteError ('The mongodb/mongodb package is required. ' );
4140 }
41+ }
42+
43+ protected function setUp (): void
44+ {
45+ parent ::setUp ();
4246
4347 $ this ->mongo = $ this ->getMockBuilder (Client::class)
4448 ->disableOriginalConstructor ()
You can’t perform that action at this time.
0 commit comments