Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function connect()
 {
     return $this->connection->connect();
 }
Esempio 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();
 }