Exemple #1
0
 public function testSend()
 {
     $transport = $this->getMock('r8\\Mail\\Transport', array('internalSend', 'send'));
     $mail = new \r8\Mail($this->getTestTransport());
     $mail->setTransport($transport);
     $transport->expects($this->once())->method('send')->with($this->equalTo($mail));
     $this->assertSame($mail, $mail->send());
 }