summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/mb_strcut.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mbstring/tests/mb_strcut.phpt')
-rw-r--r--ext/mbstring/tests/mb_strcut.phpt34
1 files changed, 0 insertions, 34 deletions
diff --git a/ext/mbstring/tests/mb_strcut.phpt b/ext/mbstring/tests/mb_strcut.phpt
deleted file mode 100644
index 8ea074a3cd..0000000000
--- a/ext/mbstring/tests/mb_strcut.phpt
+++ /dev/null
@@ -1,34 +0,0 @@
---TEST--
-mb_strcut()
---SKIPIF--
-<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
---INI--
-output_handler=
---FILE--
-<?php
-// TODO: Add more encodings
-ini_set('include_path','.');
-include_once('common.inc');
-
-// EUC-JP
-$euc_jp = '0123この文字列は日本語です。EUC-JPを使っています。日本語は面倒臭い。';
-
-print mb_strcut($euc_jp, 6, 5,'EUC-JP') . "\n";
-print mb_strcut($euc_jp, 0, 100,'EUC-JP') . "\n";
-
-$str = mb_strcut($euc_jp, 100, 10,'EUC-JP');
-($str === "") ? print "OK\n" : print "NG: $str\n";
-
-$str = mb_strcut($euc_jp, -100, 10,'EUC-JP');
-($str !== "") ? print "OK: $str\n" : print "NG:\n";
-
-
-?>
-
---EXPECT--
-の文
-0123この文字列は日本語です。EUC-JPを使っています。日本語は面倒臭い。
-OK
-OK: 0123この文
-
-