File tree 1 file changed +8
-4
lines changed
Tests/Session/Storage/Handler
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use MongoDB \Client ;
15
15
use PHPUnit \Framework \MockObject \MockObject ;
16
+ use PHPUnit \Framework \SkippedTestSuiteError ;
16
17
use PHPUnit \Framework \TestCase ;
17
18
use Symfony \Component \HttpFoundation \Session \Storage \Handler \MongoDbSessionHandler ;
18
19
@@ -32,13 +33,16 @@ class MongoDbSessionHandlerTest extends TestCase
32
33
private $ storage ;
33
34
public $ options ;
34
35
35
- protected function setUp (): void
36
+ public static function setUpBeforeClass (): void
36
37
{
37
- parent ::setUp ();
38
-
39
38
if (!class_exists (Client::class)) {
40
- $ this -> markTestSkipped ('The mongodb/mongodb package is required. ' );
39
+ throw new SkippedTestSuiteError ('The mongodb/mongodb package is required. ' );
41
40
}
41
+ }
42
+
43
+ protected function setUp (): void
44
+ {
45
+ parent ::setUp ();
42
46
43
47
$ this ->mongo = $ this ->getMockBuilder (Client::class)
44
48
->disableOriginalConstructor ()
You can’t perform that action at this time.
0 commit comments