/** * @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); }
/** * Clears all existing attachments. */ public function clearAttachments() { parent::clearAttachments(); $this->mailer->ClearAttachments(); }