/**
* Skip the test if the Redis extension is unavailable.
*
* @return void
*/
public function skip()
{
$this->skipIf(!Redis::enabled(), 'The redis extension is not installed.');
$redis = new RedisCore();
$cfg = $this->_config;
try {
$redis->connect($cfg['host'], $cfg['port']);
} catch (Exception $e) {
$info = $redis->info();
$msg = "redis-server does not appear to be running on {$cfg['host']}:{$cfg['port']}";
$this->skipIf(!$info, $msg);
}
unset($redis);
}