fp = $fp; // while (!feof($fp)) { // $buffer = fgets($fp, 4096); // echo $buffer; // } } public function hasData() { return !feof( $this->fp ); } public function getNextLine() { if ( feof( $this->fp ) ) { if ( $this->fp != null ) { fclose( $this->fp ); $this->fp = null; } return null; } $next = rtrim( fgets( $this->fp ), "\r\n" ); if ( $next == "" && feof( $this->fp ) ) // eat last linebreak { return null; } return $next; } public function nextMail() { return false; } } /** * These tests just test the overall functionality of the multipart functionality. * * @package Mail * @subpackage Tests */ class ezcMailMultipartMixedParserTest extends ezcTestCase { public static function suite() { return new PHPUnit_Framework_TestSuite( "ezcMailMultipartMixedParserTest" ); } public function testKmail1() { $parser = new ezcMailParser(); $set = new SingleFileSetMP( 'kmail/mail_with_attachment.mail' ); $mail = $parser->parseMail( $set ); } } ?>