示例#1
0
 /**
  * @param mixed $file
  * @dataProvider providerAttach
  * @depends testClearAttachments
  */
 public function testAttach($file)
 {
     $this->mail->clearAttachments();
     $this->mail->attach($file);
     $this->assertNotEmpty($this->mail->files);
     $this->mail->clearAttachments();
 }
 /**
  * Clears all existing attachments.
  */
 public function clearAttachments()
 {
     parent::clearAttachments();
     $this->mailer->ClearAttachments();
 }