From a264ef334816975b0f244bf28c506ed2fa26653e Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 3 Oct 2006 21:18:43 +0000 Subject: [PATCH] fix tests --- ext/pcre/tests/grep.phpt | 13 +++++++++++++ ext/pcre/tests/grep2.phpt | 8 ++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ext/pcre/tests/grep.phpt b/ext/pcre/tests/grep.phpt index d3d9032e49..d3fe631312 100644 --- a/ext/pcre/tests/grep.phpt +++ b/ext/pcre/tests/grep.phpt @@ -21,3 +21,16 @@ array(2) { [3]=> string(3) "h20" } +--UEXPECT-- +array(2) { + [1]=> + unicode(1) "1" + [2]=> + unicode(2) "q6" +} +array(2) { + [0]=> + unicode(1) "a" + [3]=> + unicode(3) "h20" +} diff --git a/ext/pcre/tests/grep2.phpt b/ext/pcre/tests/grep2.phpt index fc92d507ff..6ea0116a38 100644 --- a/ext/pcre/tests/grep2.phpt +++ b/ext/pcre/tests/grep2.phpt @@ -54,15 +54,15 @@ Warning: preg_grep(): Compilation failed: nothing to repeat at offset 0 in %sgre bool(false) array(3) { [5]=> - string(1) "a" + unicode(1) "a" [u"xyz"]=> - string(2) "q6" + unicode(2) "q6" [6]=> - string(3) "h20" + unicode(3) "h20" } array(1) { [u"x"]=> - string(1) "1" + unicode(1) "1" } bool(true) array(0) { -- 2.50.1