From 2ea37c77802c0c7077f5ec9b11f605cbc5ecfec4 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 19 Nov 2008 11:41:47 +0000 Subject: [PATCH] - Fixed tests --- ext/mbstring/tests/mb_split.phpt | 20 +++++++++++++++++++- ext/mbstring/tests/php_gr_jp_10830.phpt | 4 +++- ext/mbstring/tests/php_gr_jp_dev_884-1.phpt | 3 ++- ext/mbstring/tests/php_gr_jp_dev_884-2.phpt | 6 +++++- 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/ext/mbstring/tests/mb_split.phpt b/ext/mbstring/tests/mb_split.phpt index abe12763eb..2951f76ff9 100644 --- a/ext/mbstring/tests/mb_split.phpt +++ b/ext/mbstring/tests/mb_split.phpt @@ -35,14 +35,32 @@ mbstring.func_overload=0 } ?> ---EXPECT-- +--EXPECTF-- bool(true) + +Deprecated: Function split() is deprecated in %s on line %d ok + +Deprecated: Function split() is deprecated in %s on line %d ok + +Deprecated: Function split() is deprecated in %s on line %d ok + +Deprecated: Function split() is deprecated in %s on line %d ok + +Deprecated: Function split() is deprecated in %s on line %d ok + +Deprecated: Function split() is deprecated in %s on line %d ok + +Deprecated: Function split() is deprecated in %s on line %d 2-2 + +Deprecated: Function split() is deprecated in %s on line %d 3-3 + +Deprecated: Function split() is deprecated in %s on line %d 4-4 diff --git a/ext/mbstring/tests/php_gr_jp_10830.phpt b/ext/mbstring/tests/php_gr_jp_10830.phpt index 85eefd756c..1cbfc2ae1f 100644 --- a/ext/mbstring/tests/php_gr_jp_10830.phpt +++ b/ext/mbstring/tests/php_gr_jp_10830.phpt @@ -13,6 +13,8 @@ var_dump( mb_ereg("^[^><]+$",$a) ); var_dump( ereg("^[^><]+$",$a) ); ?> ---EXPECT-- +--EXPECTF-- bool(false) + +Deprecated: Function ereg() is deprecated in %s on line %d bool(false) diff --git a/ext/mbstring/tests/php_gr_jp_dev_884-1.phpt b/ext/mbstring/tests/php_gr_jp_dev_884-1.phpt index a0ab0c847d..64fc054aab 100644 --- a/ext/mbstring/tests/php_gr_jp_dev_884-1.phpt +++ b/ext/mbstring/tests/php_gr_jp_dev_884-1.phpt @@ -12,7 +12,8 @@ var_dump(ereg_replace(".*", "b", "a")); var_dump(preg_replace("/.*/", "b", "a")); var_dump(mb_ereg_replace(".*", "b", "a")); ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Function ereg_replace() is deprecated in %s on line %d string(2) "bb" string(2) "bb" string(2) "bb" diff --git a/ext/mbstring/tests/php_gr_jp_dev_884-2.phpt b/ext/mbstring/tests/php_gr_jp_dev_884-2.phpt index d81f92f416..937b2171b5 100644 --- a/ext/mbstring/tests/php_gr_jp_dev_884-2.phpt +++ b/ext/mbstring/tests/php_gr_jp_dev_884-2.phpt @@ -12,8 +12,12 @@ var_dump(ereg_replace("C?$", "Z", "ABC")); var_dump(mb_ereg_replace("C*$", "Z", "ABC")); var_dump(ereg_replace("C*$", "Z", "ABC")); ?> ---EXPECT-- +--EXPECTF-- string(4) "ABZZ" + +Deprecated: Function ereg_replace() is deprecated in %s on line %d string(4) "ABZZ" string(4) "ABZZ" + +Deprecated: Function ereg_replace() is deprecated in %s on line %d string(4) "ABZZ" -- 2.50.1