cvs: php-src /ext/iconv/tests iconv_mime_encode.phpt
| From: | Moriyoshi Koizumi | Date: | Sun, 06 Jul 2003 21:19:38 +0000 |
| Subject: | cvs: php-src /ext/iconv/tests iconv_mime_encode.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-22388@lists.php.net to get a copy of this message | ||
moriyoshi Sun Jul 6 17:19:38 2003 EDT
Modified files:
/php-src/ext/iconv/tests iconv_mime_encode.phpt
Log:
Modified the test so it reflects the change to iconv_mime_decode()
Index: php-src/ext/iconv/tests/iconv_mime_encode.phpt
diff -u php-src/ext/iconv/tests/iconv_mime_encode.phpt:1.2
php-src/ext/iconv/tests/iconv_mime_encode.phpt:1.3
--- php-src/ext/iconv/tests/iconv_mime_encode.phpt:1.2 Sat May 31 03:17:35 2003
+++ php-src/ext/iconv/tests/iconv_mime_encode.phpt Sun Jul 6 17:19:38 2003
@@ -11,9 +11,16 @@
echo "$errno: $errmsg\n";
}
set_error_handler('my_error_handler');
+$preference = array(
+ "scheme" => "B",
+ "output-charset" => "ISO-2022-JP",
+ "input-charset" => "EUC-JP",
+ "line-break-chars" => "\n"
+);
for ($line_len= 0; $line_len < 80; ++$line_len) {
print "-------- line length=$line_len\n";
- $result = iconv_mime_encode("From",
"¥µ¥ó¥×¥ëʸ»úÎó¥µ¥ó¥×¥ëʸ»úÎóÆüËÜ¸ì¥Æ¥¥¹¥È",
"B", "ISO-2022-JP", "EUC-JP", $line_len, "\n");
+ $preference["line-length"] = $line_len;
+ $result = iconv_mime_encode("From",
"¥µ¥ó¥×¥ëʸ»úÎó¥µ¥ó¥×¥ëʸ»úÎóÆüËÜ¸ì¥Æ¥¥¹¥È",
$preference);
var_dump($result);
if ($result !== false) {
list($max) = rsort(array_map("strlen", explode("\n", $result)));