Example #1
0
 public function testSend_valid()
 {
     $transport = $this->getMock('r8\\Mail\\Transport', array('internalSend'));
     $mail = new \r8\Mail($transport);
     $mail->setFrom('*****@*****.**');
     $mail->addTo('*****@*****.**');
     $transport->expects($this->once())->method('internalSend')->with($this->equalTo($mail));
     $this->assertSame($transport, $transport->send($mail));
 }