]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - vendor/pear/mail_mime/tests/test_Bug_20273.phpt
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / vendor / pear / mail_mime / tests / test_Bug_20273.phpt
diff --git a/vendor/pear/mail_mime/tests/test_Bug_20273.phpt b/vendor/pear/mail_mime/tests/test_Bug_20273.phpt
new file mode 100644 (file)
index 0000000..46539ff
--- /dev/null
@@ -0,0 +1,13 @@
+--TEST--
+Bug #20273  Mail_mimePart::encodeHeader() and TAB character
+--SKIPIF--
+--FILE--
+<?php
+include("Mail/mimePart.php");
+
+$refs = "<test@domain.tld>\t<test2@domain.tld>";
+$mime = new Mail_mimePart();
+echo $mime->encodeHeader('References', $refs);
+?>
+--EXPECT--
+<test@domain.tld> <test2@domain.tld>