Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function connect()
 {
     return $this->connection->connect();
 }
 /**
  * @expectedException RuntimeException
  */
 public function testErrorIsThrownWhenConnectionCannotBeEstablished()
 {
     $this->socket->expects($this->once())->method('connect')->with('tcp://localhost:5000')->willThrowException(new SocketException());
     $this->connection->connect();
 }