Example #1
0
 public function testThatASlaveIsBeingIdentifiedAsOne()
 {
     $slaveClientAdapter = $this->mockClientAdapterForSlave();
     $slaveNode = new Client($this->ipAddress, $this->port, $slaveClientAdapter);
     $this->assertTrue($slaveNode->isSlave(), 'A slave should be identified as slave');
     $this->assertFalse($slaveNode->isSentinel(), 'A slave should not be identified as sentinel');
     $this->assertFalse($slaveNode->isMaster(), 'A slave should not be identified as master');
 }