From: Arnaud Le Blanc Date: Fri, 24 Apr 2009 15:52:38 +0000 (+0000) Subject: Fix tests X-Git-Tag: php-5.4.0alpha1~191^2~3866 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=778baeb1b21c957d8020b8eb0d5644c3e68c7861;p=php Fix tests --- diff --git a/Zend/tests/unicode_001.phpt b/Zend/tests/unicode_001.phpt index a4bd1186e4..548fc3b000 100644 --- a/Zend/tests/unicode_001.phpt +++ b/Zend/tests/unicode_001.phpt @@ -1,5 +1,7 @@ --TEST-- Comparing size of binary and unicode strings +--INI-- +unicode.runtime_encoding=utf-8 --FILE-- array(2) { [0]=> - unicode(3) "A£" + unicode(2) "A£" [1]=> unicode(2) "BC" } @@ -25,7 +28,7 @@ array(1) { [0]=> array(2) { [0]=> - unicode(3) "A£" + unicode(2) "A£" [1]=> unicode(2) "BC" } @@ -34,13 +37,13 @@ array(1) { [0]=> array(1) { [0]=> - unicode(4) "€ " + unicode(2) "€ " } } array(1) { [0]=> array(1) { [0]=> - unicode(4) "€ " + unicode(2) "€ " } } diff --git a/ext/pcre/tests/bug47229.phpt b/ext/pcre/tests/bug47229.phpt index 74dcf20099..96b95a255d 100644 --- a/ext/pcre/tests/bug47229.phpt +++ b/ext/pcre/tests/bug47229.phpt @@ -19,19 +19,19 @@ preg_match("/a\-{1,}/", 'a\----a', $m); var_dump($m); ?> ---EXPECT-- -string(13) "\-oh really\?" +--EXPECTF-- +%string|unicode%(13) "\-oh really\?" array(1) { [0]=> - string(4) "a---" + %string|unicode%(4) "a---" } array(1) { [0]=> - string(1) "a" + %string|unicode%(1) "a" } array(1) { [0]=> - string(5) "a----" + %string|unicode%(5) "a----" } array(0) { }