protected function setUp()
{
if ($this->config === NULL) {
$configFile = dirname(__FILE__) . '/test_config.json';
if (!file_exists($configFile) || !($config = file_get_contents($configFile))) {
$this->markTestSkipped('Could not load ' . $configFile);
}
$this->config = json_decode($config);
}
$this->credis = new Credis_Client($this->config->host, $this->config->port, $this->config->timeout);
if ($this->useStandalone) {
$this->credis->forceStandalone();
}
}