cvs: pear /Mail_Mime/tests test_Bug_8386_1.phpt
| From: | Cipriano Groenendal | Date: | Mon, 23 Apr 2007 23:20:47 +0000 |
| Subject: | cvs: pear /Mail_Mime/tests test_Bug_8386_1.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-46119@lists.php.net to get a copy of this message | ||
cipri Mon Apr 23 23:20:47 2007 UTC
Modified files:
/pear/Mail_Mime/tests test_Bug_8386_1.phpt
Log:
Improved output verbosity
http://cvs.php.net/viewvc.cgi/pear/Mail_Mime/tests/test_Bug_8386_1.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/Mail_Mime/tests/test_Bug_8386_1.phpt
diff -u pear/Mail_Mime/tests/test_Bug_8386_1.phpt:1.2 pear/Mail_Mime/tests/test_Bug_8386_1.phpt:1.3
--- pear/Mail_Mime/tests/test_Bug_8386_1.phpt:1.2 Sun Apr 22 00:09:07 2007
+++ pear/Mail_Mime/tests/test_Bug_8386_1.phpt Mon Apr 23 23:20:47 2007
@@ -4,17 +4,18 @@
--FILE--
<?php
error_reporting(E_ALL); // ignore E_STRICT
-define("MAIL_MIMEPART_CRLF", "#$#");
+define("MAIL_MIMEPART_CRLF", "\n#");
include("Mail/mime.php");
$encoder = new Mail_mime();
$encoder->_build_params['ignore-iconv'] = true;
$encoder->setTXTBody('test');
-$encoder->setHTMLBody('test');
+$encoder->setHTMLBody('<b>test</b>');
$encoder->addAttachment('Just a test', 'application/octet-stream',
'test.txt', false);
$body = $encoder->get();
if (strpos($body, '--' . MAIL_MIMEPART_CRLF . '--=')){
- print("FAILED");
- print("Single delimiter between 2 parts found.");
+ print("FAILED\n");
+ print("Single delimiter() between 2 parts found.\n");
+ print($body);
}else{
print("OK");
}