/**
  * @group disconnected
  */
 public function testIsConnectedReturnsFalseIfAllConnectionsAreClosed()
 {
     $master = $this->getMockConnection('tcp://host1?alias=master');
     $master->expects($this->any())->method('isConnected')->will($this->returnValue(false));
     $slave = $this->getMockConnection('tcp://host2?alias=slave1');
     $slave->expects($this->any())->method('isConnected')->will($this->returnValue(false));
     $replication = new MasterSlaveReplication();
     $replication->add($master);
     $replication->add($slave);
     $this->assertFalse($replication->isConnected());
     $replication->connect();
     $replication->disconnect();
     $this->assertFalse($replication->isConnected());
 }