class PredisClusterSessionHandlerTest extends AbstractRedisSessionHandlerTestCase
PREFIX = 'prefix_'; |
|
protected RedisSessionHandler
|
$storage |
from AbstractRedisSessionHandlerTestCase | |
protected Redis|RedisArray|RedisCluster|Client
|
$redisClient |
from AbstractRedisSessionHandlerTestCase | |
protected Redis
|
$validator |
from AbstractRedisSessionHandlerTestCase |
createRedisClient()protected Redis|RedisArray|RedisCluster|Client createRedisClient(string $host)
string |
$host |
Redis|RedisArray|RedisCluster|Client |
setUp()protected setUp()
tearDown()protected tearDown()
testOpenSession()public testOpenSession()
testCloseSession()public testCloseSession()
testReadSession()public testReadSession()
testWriteSession()public testWriteSession()
testUseSessionGcMaxLifetimeAsTimeToLive()public testUseSessionGcMaxLifetimeAsTimeToLive()
testDestroySession()public testDestroySession()
testGcSession()public testGcSession()
testUpdateTimestamp()public testUpdateTimestamp()
testSupportedParam()public testSupportedParam(array $options, bool $supported)
array |
$options |
|
bool |
$supported |
getOptionFixtures()public array getOptionFixtures()
array |
setFixture()protected setFixture($key, $value, $ttl = null)
$key |
||
$value |
||
$ttl |
getFixture()protected getFixture($key)
$key |
hasFixture()protected bool hasFixture($key)
$key |
bool |
fixtureTtl()protected int fixtureTtl($key)
$key |
int |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler;
use Predis\Client;
class PredisClusterSessionHandlerTest extends AbstractRedisSessionHandlerTestCase
{
protected function createRedisClient(string $host): Client
{
return new Client(array(array('host' => $host)));
}
}