예제 #1
0
 /**
  * Test on the send mail
  */
 public function testSendMail()
 {
     $this->swiftMailer->prepare('*****@*****.**', 'fromTest', ['*****@*****.**'], 'test subject', 'test body')->send();
     \Phake::verify($this->swift)->send(\Phake::anyParameters());
 }
 /**
  * Test the failed on the send mail
  */
 public function testFailedSendMail()
 {
     $result = $this->swiftMailer->send();
     $this->assertFalse($result);
 }