From 078bcec0997ad0e07b720c43cc9e6d0e046a75ab Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Thu, 27 Feb 2003 17:43:39 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'PHP_5'. --- ext/mbstring/tests/mb_detect_encoding.phpt | 119 ----------------------------- 1 file changed, 119 deletions(-) delete mode 100644 ext/mbstring/tests/mb_detect_encoding.phpt (limited to 'ext/mbstring/tests/mb_detect_encoding.phpt') diff --git a/ext/mbstring/tests/mb_detect_encoding.phpt b/ext/mbstring/tests/mb_detect_encoding.phpt deleted file mode 100644 index 5031f6fb8f..0000000000 --- a/ext/mbstring/tests/mb_detect_encoding.phpt +++ /dev/null @@ -1,119 +0,0 @@ ---TEST-- -mb_detect_encoding() ---SKIPIF-- - ---FILE-- -'UTF-8',1=>'EUC-JP', 2=>'SJIS', 3=>'JIS'); - -// Note: Due to detect order, detected as UTF-8 -$s = $jis; -$s = mb_detect_encoding($s, $a); -print("JIS: $s\n"); - -$s = $euc_jp; -$s = mb_detect_encoding($s, $a); -print("EUC-JP: $s\n"); - -$s = $sjis; -$s = mb_detect_encoding($s, $a); -print("SJIS: $s\n"); - - -// Using Detect Order -echo "== DETECT ORDER ==\n"; - -mb_detect_order('auto'); - - -$s = $jis; -$s = mb_detect_encoding($s); -print("JIS: $s\n"); - -$s = $euc_jp; -$s = mb_detect_encoding($s); -print("EUC-JP: $s\n"); - -$s = $sjis; -$s = mb_detect_encoding($s); -print("SJIS: $s\n"); - - -// Invalid(?) Parameters -echo "== INVALID PARAMETER ==\n"; - -$s = mb_detect_encoding(1234, 'EUC-JP'); -print("INT: $s\n"); // EUC-JP - -$s = mb_detect_encoding('', 'EUC-JP'); -print("EUC-JP: $s\n"); // SJIS - -$s = $euc_jp; -$s = mb_detect_encoding($s, 'BAD'); -print("BAD: $s\n"); // BAD - -$s = $euc_jp; -$s = mb_detect_encoding(); -print("MP: $s\n"); // Missing parameter - - -?> - ---EXPECT-- -== BASIC TEST == -SJIS: SJIS -JIS: JIS -EUC-JP: EUC-JP -EUC-JP: EUC-JP -== ARRAY ENCODING LIST == -JIS: UTF-8 -EUC-JP: EUC-JP -SJIS: SJIS -== DETECT ORDER == -JIS: JIS -EUC-JP: EUC-JP -SJIS: SJIS -== INVALID PARAMETER == -INT: EUC-JP -EUC-JP: EUC-JP -ERR: Warning -BAD: EUC-JP -ERR: Warning -MP: - -- cgit v1.2.1