Inheritance: extends Crummy\Phlack\Common\Encodable
Example #1
0
 public function it_returns_an_empty_reply_on_send(MessageInterface $message)
 {
     $message->jsonSerialize()->willReturn(['text' => 'ok']);
     $this->send($message)['text']->shouldReturn('');
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function send(MessageInterface $message)
 {
     $command = $this->client->getCommand('Send', $message->jsonSerialize());
     $this->client->execute($command);
     return new EmptyReply();
 }