Пример #1
0
 /**
  * @param string $header
  * @param string $key
  * @param string $value
  * @dataProvider providerHeader
  */
 public function testHeader($header, $key, $value)
 {
     $this->mail->header($header);
     $found = false;
     foreach ($this->mail->headers as $header) {
         if (isset($header[0]) && isset($header[1])) {
             if ($header[0] == $key && $header[1] == $value) {
                 $found = true;
                 break;
             }
         }
     }
     $this->assertTrue($found);
 }
Пример #2
0
 /**
  * Clears all existing attachments.
  */
 public function clearAttachments()
 {
     parent::clearAttachments();
     $this->mailer->ClearAttachments();
 }