/**
  * @dataProvider getDateFormats
  */
 public function testDateQuoteHeader($date)
 {
     $email = $this->parser->parse(str_replace('[DATE]', $date, $this->getFixtures('email_with_date_headers.txt')));
     $this->assertEquals('Thank you very much.', $email->getVisibleText());
 }
 /**
  * @param string $text An email as text.
  *
  * @return Email
  */
 public static function read($text)
 {
     $parser = new EmailParser();
     return $parser->parse($text);
 }