Skip to content

Commit 07eadd2

Browse files
committed
test: use @requires
1 parent 7d45205 commit 07eadd2

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

tests/system/Session/Handlers/Database/RedisHandlerTest.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
use Redis;
1818

1919
/**
20+
* @requires extension redis
21+
*
2022
* @internal
2123
*/
2224
final class RedisHandlerTest extends CIUnitTestCase
@@ -25,17 +27,6 @@ final class RedisHandlerTest extends CIUnitTestCase
2527
private string $sessionSavePath = 'tcp://127.0.0.1:6379';
2628
private string $userIpAddress = '127.0.0.1';
2729

28-
protected function setUp(): void
29-
{
30-
parent::setUp();
31-
32-
if (! class_exists(Redis::class)) {
33-
$this->markTestSkipped(
34-
'Redis Session Handler requires PHP Redis extention and Redis server'
35-
);
36-
}
37-
}
38-
3930
private function getInstance($options = [])
4031
{
4132
$defaults = [

0 commit comments

Comments
 (0)