X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/vendor/pear/mail_mime/tests/test_Bug_21206.phpt diff --git a/vendor/pear/mail_mime/tests/test_Bug_21206.phpt b/vendor/pear/mail_mime/tests/test_Bug_21206.phpt new file mode 100644 index 00000000..61688f6c --- /dev/null +++ b/vendor/pear/mail_mime/tests/test_Bug_21206.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #21206 Handling quoted strings +--SKIPIF-- +--FILE-- +, b ', + '"c\\\\" , d ', +]; +foreach ($tests as $test) { + $addrs = X::explodeQuotedString('[\t,]', $test); + foreach ($addrs as $addr) { + print trim($addr) . PHP_EOL; + } +} +?> +--EXPECT-- +"a" +b +"c\\" +d