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