]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - vendor/pear/mail_mime/tests/test_Bug_9722_1.phpt
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / vendor / pear / mail_mime / tests / test_Bug_9722_1.phpt
diff --git a/vendor/pear/mail_mime/tests/test_Bug_9722_1.phpt b/vendor/pear/mail_mime/tests/test_Bug_9722_1.phpt
new file mode 100644 (file)
index 0000000..b85f111
--- /dev/null
@@ -0,0 +1,24 @@
+--TEST--
+Bug #9722   quotedPrintableEncode does not encode dot at start of line on Windows platform
+--SKIPIF--
+--FILE--
+<?php
+include("Mail/mimePart.php");
+$text = "This
+is a
+test
+...
+    It is 
+//really fun//
+to make :(";
+
+print_r(Mail_mimePart::quotedPrintableEncode($text, 76, "\n"));
+
+--EXPECT--
+This
+is a
+test
+=2E..
+    It is=20
+//really fun//
+to make :(