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