From b1e51d05554efb8d4d49f9d93e7d25b4ecfa62e3 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Mon, 25 Aug 2008 13:44:33 +0000 Subject: [PATCH] - Fixed tests --- .../tests/strings/stripslashes_error.phpt | 4 +-- .../strings/stripslashes_variation1.phpt | 24 ++++++++++-------- ext/standard/tests/strings/strlen.phpt | Bin 6981 -> 7071 bytes ext/standard/tests/strings/strtoupper1.phpt | Bin 5094 -> 5211 bytes 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/ext/standard/tests/strings/stripslashes_error.phpt b/ext/standard/tests/strings/stripslashes_error.phpt index 8905217ee8..97fa8dd4d3 100644 --- a/ext/standard/tests/strings/stripslashes_error.phpt +++ b/ext/standard/tests/strings/stripslashes_error.phpt @@ -32,12 +32,12 @@ echo "Done\n"; -- Testing stripslashes() function with Zero arguments -- -Warning: Wrong parameter count for stripslashes() in %s on line %d +Warning: stripslashes() expects exactly 1 parameter, 0 given in %s on line %d NULL -- Testing stripslashes() function with more than expected no. of arguments -- -Warning: Wrong parameter count for stripslashes() in %s on line %d +Warning: stripslashes() expects exactly 1 parameter, 2 given in %s on line %d NULL unicode(18) "\"hello\"\"world\"" Done diff --git a/ext/standard/tests/strings/stripslashes_variation1.phpt b/ext/standard/tests/strings/stripslashes_variation1.phpt index 15ee4abf4c..436e0e8a40 100644 --- a/ext/standard/tests/strings/stripslashes_variation1.phpt +++ b/ext/standard/tests/strings/stripslashes_variation1.phpt @@ -125,24 +125,24 @@ unicode(7) "1.06E-9" unicode(3) "0.5" -- Iteration 10 -- -Notice: Array to string conversion in %s on line %d -unicode(5) "Array" +Warning: stripslashes() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d +NULL -- Iteration 11 -- -Notice: Array to string conversion in %s on line %d -unicode(5) "Array" +Warning: stripslashes() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d +NULL -- Iteration 12 -- -Notice: Array to string conversion in %s on line %d -unicode(5) "Array" +Warning: stripslashes() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d +NULL -- Iteration 13 -- -Notice: Array to string conversion in %s on line %d -unicode(5) "Array" +Warning: stripslashes() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d +NULL -- Iteration 14 -- -Notice: Array to string conversion in %s on line %d -unicode(5) "Array" +Warning: stripslashes() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d +NULL -- Iteration 15 -- unicode(1) "1" -- Iteration 16 -- @@ -162,7 +162,9 @@ unicode(0) "" -- Iteration 23 -- unicode(6) "obj'ct" -- Iteration 24 -- -unicode(%d) "Resource id #%d" + +Warning: stripslashes() expects parameter 1 to be string (Unicode or binary), resource given in %s on line %d +NULL -- Iteration 25 -- unicode(0) "" -- Iteration 26 -- diff --git a/ext/standard/tests/strings/strlen.phpt b/ext/standard/tests/strings/strlen.phpt index b39b8c5481db8fe19d14f019898d807cf3d19157..218ec4bdae2eadbe6f64be89df07da0251f6e7b4 100644 GIT binary patch delta 290 zcmX?VHs5^1R*CxX#G<^+ymTvt;*z4A)I1GMh180I)Z~(4g@VMQ#N5=9)FK5#g_3-Q zq*Ra+pi%{m(7ep#{FGFM{33;<%)G>+N=+Sw#G<0aN`>^yveZ0<%sd6vVu*Qq1sMej z`FRRCnR%%SswrH4p*}ubnRz7|W}0AX^KXf%jJgrflFa