Exemplo n.º 1
0
 public function testAttachData()
 {
     $data = file_get_contents(__DIR__ . '/image.gif');
     $actual = $this->object->attachData($data);
     $this->assertInstanceOf('Swift_Attachment', $actual);
 }
Exemplo n.º 2
0
 /**
  * Set the default Swift_Transport and initialize the Swift_Mailer
  *
  * @param Swift_Trasport $transport
  */
 static function setDefaultTransport(Swift_Transport $transport)
 {
     self::$mailer = new Swift_Mailer($transport);
 }