Skip to content

Commit 3c756bf

Browse files
committed
[HttpFoundation] Add RedisSessionHandler (skip if extension missing)
1 parent 3bfac1a commit 3c756bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractRedisSessionHandlerTestCase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ protected function setUp()
4747
{
4848
parent::setUp();
4949

50+
if (!\extension_loaded('redis')) {
51+
self::markTestSkipped('Extension redis required.');
52+
}
53+
5054
$host = \getenv('REDIS_HOST') ?? 'localhost';
5155

5256
$this->validator = new \Redis();

0 commit comments

Comments
 (0)