public function testSlaveClient()
{
$slaves = $this->sentinel->getSlaveClients($this->sentinelConfig->clustername);
$this->assertInternalType('array', $slaves);
$this->assertCount(1, $slaves);
foreach ($slaves as $slave) {
$this->assertInstanceOf('Credis_Client', $slave);
}
$this->setExpectedException('CredisException', 'No such master with that name');
$this->sentinel->getSlaveClients('non-existing-cluster');
}