Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 /**
  * 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));
 }