protected function setUp() { $handler = new Redis(); $handler->connect($this->redisConfig['host'], $this->redisConfig['port'], $this->redisConfig['timeout'], null, $this->redisConfig['reconnectAttempt']); $handler->select($this->redisConfig['dbIndex']); $this->client = new c\RedisCache($handler); $this->client->clear(); }
public function testClear() { $clear = $this->client->clear(); $this->assertTrue($clear); }