Permalink
Browse files

Fixed test case

  • Loading branch information...
1 parent 4563f85 commit 162c087bf203942a53498fc82539d0b26356ebee @davidwindell committed Jul 13, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −2 tests/Zend/Mail/Storage/MessageTest.php
  2. +0 −1 tests/Zend/Mail/_files/mail.txt
@@ -424,8 +424,11 @@ public function testSpaceInFieldName()
}
public function testStrictParseMessage()
- {
+ {
$this->setExpectedException('Zend\\Mail\\Exception\\RuntimeException');
- $message = new Message(array('file' => $this->_file, 'strict' => true));
+
+ $raw = file_get_contents($this->_file);
+ $raw = "From foo@example.com Sun Jan 01 00:00:00 2000\n" . $raw;
+ $message = new Message(array('raw' => $raw, 'strict' => true));
}
}
@@ -1,4 +1,3 @@
-From foo@example.com Sun Jan 01 00:00:00 2000
To: foo@example.com
Subject: multipart
Date: Sun, 01 Jan 2000 00:00:00 +0000

0 comments on commit 162c087

Please sign in to comment.