/**
  *
  */
 public function testSend()
 {
     $transport = new \Swift_NullTransport();
     $message = MailManager::getMailMessage('*****@*****.**', '*****@*****.**', '*****@*****.**', '*****@*****.**');
     MailManagerSendSwift::send($transport, $message);
 }
 /**
  * @param $transport
  * @param $message
  * @return bool|int
  * @throws MailWrapperSetupException
  */
 public static function sendVia($transport, $message = null)
 {
     switch (true) {
         case $transport instanceof MailgunManager:
             return MailManagerSendMailgun::send($transport, $message);
         case $transport instanceof \PHPMailer:
             return MailManagerSendPhpMailer::send($transport, $message);
         case $transport instanceof \Swift_Mailer:
         case $transport instanceof \Swift_Transport:
             return MailManagerSendSwift::send($transport, $message);
         case $transport instanceof TransportInterface:
             return MailManagerSendZend::send($transport, $message);
         default:
             throw new MailWrapperSetupException('No Transport available');
     }
 }