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