예제 #1
0
 /**
  *
  */
 public function testSendMailableException()
 {
     if (!class_exists('Swift_NullTransport')) {
         return;
     }
     $transport = new \Swift_NullTransport();
     $exception = (new MailWrapperMailableException())->setParams(['test1' => 'test2']);
     MailManager::sendExceptionTo('*****@*****.**', '*****@*****.**', $exception, '*****@*****.**', $transport);
 }
 /**
  * @expectedException \BespokeSupport\MailWrapper\MailWrapperSetupException
  */
 public function testSendExceptionNulls()
 {
     MailManager::sendExceptionTo(null, null, new \Exception('test'), null, null);
 }