From: Gunnar Wrobel Date: Mon, 13 Sep 2010 11:19:21 +0000 (+0200) Subject: Adapt testing to recent changes in the Mime library. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=32366fce76e7b6e49e645df0c3f5a58121acea77;p=horde.git Adapt testing to recent changes in the Mime library. --- diff --git a/framework/Itip/test/Horde/Itip/Integration/ItipTest.php b/framework/Itip/test/Horde/Itip/Integration/ItipTest.php index e41e1c720..b7a0ed839 100644 --- a/framework/Itip/test/Horde/Itip/Integration/ItipTest.php +++ b/framework/Itip/test/Horde/Itip/Integration/ItipTest.php @@ -323,10 +323,7 @@ extends PHPUnit_Framework_TestCase ); $mail = ''; $mail .= $this->_transport->sentMessages[0]['header_text'] . "\n\n"; - $body = $this->_transport->sentMessages[0]['body']; - while (!feof($body)) { - $mail .= fread($body, 8192); - } + $mail .= $this->_transport->sentMessages[0]['body']; $part = Horde_Mime_Part::parseMessage($mail); $this->assertEquals(2, count($part->getParts())); }