X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/vendor/pear/mail_mime/tests/test_Bug_8386_1.phpt diff --git a/vendor/pear/mail_mime/tests/test_Bug_8386_1.phpt b/vendor/pear/mail_mime/tests/test_Bug_8386_1.phpt new file mode 100644 index 00000000..e317375b --- /dev/null +++ b/vendor/pear/mail_mime/tests/test_Bug_8386_1.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #8386 HTML body not correctly encoded if attachments present +--SKIPIF-- +--FILE-- +$eol)); +$encoder->setTXTBody('test'); +$encoder->setHTMLBody('test'); +$encoder->addAttachment('Just a test', 'application/octet-stream', 'test.txt', false); +$body = $encoder->get(); +if (strpos($body, '--' . $eol . '--=')){ + print("FAILED\n"); + print("Single delimiter() between 2 parts found.\n"); + print($body); +}else{ + print("OK"); +} +?> +--EXPECT-- +OK