From: Felipe Pena Date: Thu, 7 Feb 2008 12:45:54 +0000 (+0000) Subject: Fixed some tests (UEXPECT) X-Git-Tag: RELEASE_2_0_0a1~584 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77864cdc8e4106b6d6a8ec92387847631dcfdd92;p=php Fixed some tests (UEXPECT) --- diff --git a/ext/standard/tests/strings/str_split_basic.phpt b/ext/standard/tests/strings/str_split_basic.phpt index df62315c5a..9b00b8dcbf 100644 --- a/ext/standard/tests/strings/str_split_basic.phpt +++ b/ext/standard/tests/strings/str_split_basic.phpt @@ -102,7 +102,7 @@ array(5) { [3]=> unicode(5) "estca" [4]=> - string(2) "se" + unicode(2) "se" } -- With split_length as default argument -- array(22) { diff --git a/ext/standard/tests/strings/substr_count_variation_001.phpt b/ext/standard/tests/strings/substr_count_variation_001.phpt index e9841cb29e..6892ed88ed 100644 --- a/ext/standard/tests/strings/substr_count_variation_001.phpt +++ b/ext/standard/tests/strings/substr_count_variation_001.phpt @@ -113,13 +113,13 @@ int(2) -- 3rd or 4th arg as NULL -- -Warning: substr_count() expects parameter 3 to be long, string given in %s on line %d +Warning: substr_count() expects parameter 3 to be long, Unicode string given in %s on line %d NULL -Warning: substr_count() expects parameter 3 to be long, string given in %s on line %d +Warning: substr_count() expects parameter 3 to be long, Unicode string given in %s on line %d NULL -Warning: substr_count() expects parameter 3 to be long, string given in %s on line %d +Warning: substr_count() expects parameter 3 to be long, Unicode string given in %s on line %d NULL int(0) int(2) diff --git a/ext/standard/tests/strings/wordwrap_variation2.phpt b/ext/standard/tests/strings/wordwrap_variation2.phpt index 2718791943..e0b9246207 100644 --- a/ext/standard/tests/strings/wordwrap_variation2.phpt +++ b/ext/standard/tests/strings/wordwrap_variation2.phpt @@ -338,3 +338,242 @@ string(39) "testing
\nwordwrap
\nfunction" Warning: wordwrap(): Can't force cut when width is zero in %s on line %d bool(false) Done +--UEXPECTF-- +*** Testing wordwrap() : usage variations *** + +--- Testing wordwrap() by supplying different values for 'width' argument --- +-- Iteration 1 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" + +Warning: wordwrap(): Can't force cut when width is zero in %s on line %d +bool(false) +-- Iteration 2 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" +string(223) "
\nt
\ne
\ns
\nt
\ni
\nn
\ng
\n
\nw
\no
\nr
\nd
\nw
\nr
\na
\np
\n
\nf
\nu
\nn
\nc
\nt
\ni
\no
\nn" +-- Iteration 3 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" +string(223) "
\nt
\ne
\ns
\nt
\ni
\nn
\ng
\n
\nw
\no
\nr
\nd
\nw
\nr
\na
\np
\n
\nf
\nu
\nn
\nc
\nt
\ni
\no
\nn" +-- Iteration 4 -- + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL +-- Iteration 5 -- + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL +-- Iteration 6 -- + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL +-- Iteration 7 -- + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL +-- Iteration 8 -- + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, array given in %s on line %d +NULL +-- Iteration 9 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" +string(199) "t
\ne
\ns
\nt
\ni
\nn
\ng
\nw
\no
\nr
\nd
\nw
\nr
\na
\np
\nf
\nu
\nn
\nc
\nt
\ni
\no
\nn" +-- Iteration 10 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" + +Warning: wordwrap(): Can't force cut when width is zero in %s on line %d +bool(false) +-- Iteration 11 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" +string(199) "t
\ne
\ns
\nt
\ni
\nn
\ng
\nw
\no
\nr
\nd
\nw
\nr
\na
\np
\nf
\nu
\nn
\nc
\nt
\ni
\no
\nn" +-- Iteration 12 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" + +Warning: wordwrap(): Can't force cut when width is zero in %s on line %d +bool(false) +-- Iteration 13 -- + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL +-- Iteration 14 -- + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL +-- Iteration 15 -- + +Warning: wordwrap() expects parameter 2 to be long, object given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, object given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, object given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, object given in %s on line %d +NULL +-- Iteration 16 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" + +Warning: wordwrap(): Can't force cut when width is zero in %s on line %d +bool(false) +-- Iteration 17 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" + +Warning: wordwrap(): Can't force cut when width is zero in %s on line %d +bool(false) +-- Iteration 18 -- + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL +-- Iteration 19 -- + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL +-- Iteration 20 -- + +Warning: wordwrap() expects parameter 2 to be long, resource given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, resource given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, resource given in %s on line %d +NULL + +Warning: wordwrap() expects parameter 2 to be long, resource given in %s on line %d +NULL +-- Iteration 21 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" + +Warning: wordwrap(): Can't force cut when width is zero in %s on line %d +bool(false) +-- Iteration 22 -- +string(25) "testing +wordwrap +function" +string(39) "testing
\nwordwrap
\nfunction" +string(39) "testing
\nwordwrap
\nfunction" + +Warning: wordwrap(): Can't force cut when width is zero in %s on line %d +bool(false) +Done