X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/vendor/pear/mail_mime/tests/test_Bug_15320.phpt diff --git a/vendor/pear/mail_mime/tests/test_Bug_15320.phpt b/vendor/pear/mail_mime/tests/test_Bug_15320.phpt new file mode 100644 index 00000000..2f300cc2 --- /dev/null +++ b/vendor/pear/mail_mime/tests/test_Bug_15320.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #15320 Charset parameter in Content-Type of mail parts +--SKIPIF-- +--FILE-- +addAttachment('testfile', "text/plain", 'file.txt', FALSE, 'base64', 'attachment', 'ISO-8859-1'); + +$content = $Mime->get(); +//$content = str_replace("\n", '', $content); + +if (preg_match('/Content-type:([^\n]+)/i', $content, $matches)) { + echo $matches[1]; +} + +?> +--EXPECT-- +text/plain; charset=ISO-8859-1; +