From 1a9de83ddff116d610ad5604803316cd79fbaa8c Mon Sep 17 00:00:00 2001 From: Ant Phillips Date: Fri, 5 Dec 2008 14:01:49 +0000 Subject: [PATCH] MBString tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). --- ext/mbstring/tests/mb_stristr_basic.phpt | 72 ++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 ext/mbstring/tests/mb_stristr_basic.phpt diff --git a/ext/mbstring/tests/mb_stristr_basic.phpt b/ext/mbstring/tests/mb_stristr_basic.phpt new file mode 100644 index 0000000000..a6453a5e6a --- /dev/null +++ b/ext/mbstring/tests/mb_stristr_basic.phpt @@ -0,0 +1,72 @@ +--TEST-- +Test mb_stristr() function : basic functionality +--XFAIL-- +Bug #46763 stristr() wrong output when needle does not exist +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECT-- +*** Testing mb_stristr() : basic functionality *** + +-- ASCII string: needle exists -- +string(10) "6263646566" +string(10) "6263646566" +string(2) "61" + +-- ASCII string: needle doesn't exist -- +bool(false) + +-- Multibyte string: needle exists -- +string(52) "cebccebdcebecebfcf80cf81cf83cf84cf85cf86cf87cf88cf89" +string(52) "cebccebdcebecebfcf80cf81cf83cf84cf85cf86cf87cf88cf89" +string(44) "ceb1ceb2ceb3ceb4ceb5ceb6ceb7ceb8ceb9cebacebb" + +-- Multibyte string: needle doesn't exist -- +bool(false) +===DONE=== -- 2.50.1