summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2002-11-14 22:38:43 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2002-11-14 22:38:43 +0000
commit9efefc742ba4637216a0fbd1ce06fce71af6bb9f (patch)
tree522634543cb327012086ec5545f95caf576025c3 /ext/mbstring/tests
parent25641a7e96e8b3b5c12baa77029f72c3c8858e52 (diff)
downloadphp-git-9efefc742ba4637216a0fbd1ce06fce71af6bb9f.tar.gz
Added a test for zend-multibyte extension
Diffstat (limited to 'ext/mbstring/tests')
-rw-r--r--ext/mbstring/tests/zend-multibyte.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/mbstring/tests/zend-multibyte.phpt b/ext/mbstring/tests/zend-multibyte.phpt
new file mode 100644
index 0000000000..92e4d29383
--- /dev/null
+++ b/ext/mbstring/tests/zend-multibyte.phpt
@@ -0,0 +1,22 @@
+--TEST--
+zend multibyte
+--SKIPIF--
+<?php
+ini_set("mbstring.script_encoding","SJIS");
+if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") {
+ die("skip zend-multibyte is not available");
+}
+?>
+--INI--
+mbstring.script_encoding=Shift_JIS
+--FILE--
+<?php
+ function 予蚕能($引数)
+ {
+ echo $引数;
+ }
+
+ 予蚕能("ドレミファソ");
+?>
+--EXPECT--
+ドレミファソ