public function it_returns_an_empty_reply_on_send(MessageInterface $message) { $message->jsonSerialize()->willReturn(['text' => 'ok']); $this->send($message)['text']->shouldReturn(''); }
/** * {@inheritdoc} */ public function send(MessageInterface $message) { $command = $this->client->getCommand('Send', $message->jsonSerialize()); $this->client->execute($command); return new EmptyReply(); }