Skip to content

Commit 0c737a4

Browse files
jderussefabpot
authored andcommitted
Fix SkippedTestSuite
1 parent 0e4051c commit 0c737a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Security\Http\Tests\RememberMe;
1313

14+
use PHPUnit\Framework\SkippedTestSuiteError;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\HttpFoundation\Cookie;
1617
use Symfony\Component\HttpFoundation\Request;
@@ -35,7 +36,7 @@ public static function setUpBeforeClass(): void
3536
try {
3637
random_bytes(1);
3738
} catch (\Exception $e) {
38-
self::markTestSkipped($e->getMessage());
39+
throw new SkippedTestSuiteError($e->getMessage());
3940
}
4041
}
4142

0 commit comments

Comments
 (0)