public function test_send_calls_adapter_send() { $this->adapter->expects($this->once())->method('send')->with($this->message)->will($this->returnValue('response text')); $conn = new Connection($this->adapter); $res = $conn->send($this->message); $this->assertInternalType('string', $res); }
/** * Uses the configured adapter to send a message. * * @param AbstractMessage $message * @return string */ public function send(AbstractMessage $message) { return iconv('ISO-8859-1', 'UTF-8', $this->adapter->send($message)); }