/**
  * @group disconnected
  */
 public function testRemovingConnectionsFromReplication()
 {
     $master = $this->getMockConnection('tcp://host1?alias=master');
     $slave1 = $this->getMockConnection('tcp://host2?alias=slave1');
     $slave2 = $this->getMockConnection('tcp://host3?alias=slave2');
     $replication = new MasterSlaveReplication();
     $replication->add($master);
     $replication->add($slave1);
     $this->assertTrue($replication->remove($slave1));
     $this->assertFalse($replication->remove($slave2));
     $this->assertSame($master, $replication->getMaster());
     $this->assertSame(array(), $replication->getSlaves());
 }