From: Felipe Pena Date: Sat, 10 Oct 2009 00:31:18 +0000 (+0000) Subject: - Fixed tests X-Git-Tag: php-5.4.0alpha1~191^2~2525 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a750aabc01be1fc2d18cdde980d287fc0edc197;p=php - Fixed tests --- diff --git a/ext/date/tests/DateTime_format_variation1.phpt b/ext/date/tests/DateTime_format_variation1.phpt index 87a99220a6..46e98c73cf 100644 --- a/ext/date/tests/DateTime_format_variation1.phpt +++ b/ext/date/tests/DateTime_format_variation1.phpt @@ -111,98 +111,98 @@ fclose( $file_handle ); *** Testing DateTime::format() : usage variation - unexpected values to first argument $format*** -- int 0 -- -string(1) "0" +unicode(1) "0" -- int 1 -- -string(1) "1" +unicode(1) "1" -- int 12345 -- -string(5) "12345" +unicode(5) "12345" -- int -12345 -- -string(6) "-12345" +unicode(6) "-12345" -- float 10.5 -- -string(4) "10.5" +unicode(4) "10.5" -- float -10.5 -- -string(5) "-10.5" +unicode(5) "-10.5" -- float .5 -- -string(3) "0.5" +unicode(3) "0.5" -- empty array -- -Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d +Warning: DateTime::format() expects parameter 1 to be binary string, array given in %s on line %d bool(false) -- int indexed array -- -Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d +Warning: DateTime::format() expects parameter 1 to be binary string, array given in %s on line %d bool(false) -- associative array -- -Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d +Warning: DateTime::format() expects parameter 1 to be binary string, array given in %s on line %d bool(false) -- nested arrays -- -Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d +Warning: DateTime::format() expects parameter 1 to be binary string, array given in %s on line %d bool(false) -- uppercase NULL -- -string(0) "" +unicode(0) "" -- lowercase null -- -string(0) "" +unicode(0) "" -- lowercase true -- -string(1) "1" +unicode(1) "1" -- lowercase false -- -string(0) "" +unicode(0) "" -- uppercase TRUE -- -string(1) "1" +unicode(1) "1" -- uppercase FALSE -- -string(0) "" +unicode(0) "" -- empty string DQ -- -string(0) "" +unicode(0) "" -- empty string SQ -- -string(0) "" +unicode(0) "" -- string DQ -- -string(40) "4131Thu, 14 Jul 2005 22:30:41 +010030710" +unicode(40) "4131Thu, 14 Jul 2005 22:30:41 +010030710" -- string SQ -- -string(40) "4131Thu, 14 Jul 2005 22:30:41 +010030710" +unicode(40) "4131Thu, 14 Jul 2005 22:30:41 +010030710" -- mixed case string -- -string(40) "41BSTThu, 14 Jul 2005 22:30:41 +01001722" +unicode(40) "41BSTThu, 14 Jul 2005 22:30:41 +01001722" -- heredoc -- -string(82) "10Europe/LondonThursdayThursday2005 42005Thu, 14 Jul 2005 22:30:41 +0100Thursday14" +unicode(82) "10Europe/LondonThursdayThursday2005 42005Thu, 14 Jul 2005 22:30:41 +0100Thursday14" -- instance of classWithToString -- -string(66) "CThursdaypm4141 PM 2005b14Europe/London2005-07-14T22:30:41+01:0031" +unicode(66) "CThursdaypm4141 PM 2005b14Europe/London2005-07-14T22:30:41+01:0031" -- instance of classWithoutToString -- -Warning: DateTime::format() expects parameter 1 to be string, object given in %s on line %d +Warning: DateTime::format() expects parameter 1 to be binary string, object given in %s on line %d bool(false) -- undefined var -- -string(0) "" +unicode(0) "" -- unset var -- -string(0) "" +unicode(0) "" -- resource -- -Warning: DateTime::format() expects parameter 1 to be string, resource given in %s on line %d +Warning: DateTime::format() expects parameter 1 to be binary string, resource given in %s on line %d bool(false) ===DONE=== diff --git a/ext/date/tests/bug13142.phpt b/ext/date/tests/bug13142.phpt index 5e54263c54..a392117ddd 100644 --- a/ext/date/tests/bug13142.phpt +++ b/ext/date/tests/bug13142.phpt @@ -8,7 +8,7 @@ if (!@putenv("TZ=US/Eastern") || getenv("TZ") != 'US/Eastern') { ?> --FILE-- diff --git a/ext/date/tests/bug17988.phpt b/ext/date/tests/bug17988.phpt index 259fa7dc2e..71ddff0b5f 100644 --- a/ext/date/tests/bug17988.phpt +++ b/ext/date/tests/bug17988.phpt @@ -2,7 +2,7 @@ Bug #17988 (strtotime handling of postgresql timestamps) --FILE-- --EXPECT-- diff --git a/ext/date/tests/bug21966.phpt b/ext/date/tests/bug21966.phpt index 31f592fa98..36ce75dd48 100644 --- a/ext/date/tests/bug21966.phpt +++ b/ext/date/tests/bug21966.phpt @@ -2,7 +2,7 @@ Bug #21966 (date() or mktime() returning bad value for mktime month param of '2') --FILE-- diff --git a/ext/date/tests/bug26694.phpt b/ext/date/tests/bug26694.phpt index a709d1666c..32cf09f1f8 100644 --- a/ext/date/tests/bug26694.phpt +++ b/ext/date/tests/bug26694.phpt @@ -2,7 +2,7 @@ Bug #26694 (strtotime() request for "Sun, 21 Dec 2003 20:38:33 +0000 GMT") --FILE-- --EXPECT-- diff --git a/ext/date/tests/bug27719.phpt b/ext/date/tests/bug27719.phpt index 6f65bfb85e..796601983f 100644 --- a/ext/date/tests/bug27719.phpt +++ b/ext/date/tests/bug27719.phpt @@ -3,8 +3,8 @@ Bug #27719 (mktime returns incorrect timestamp for dst days) --INI-- error_reporting=2047 --FILE-- - diff --git a/ext/date/tests/bug28088.phpt b/ext/date/tests/bug28088.phpt index 95866e00be..d9c18b4cc7 100644 --- a/ext/date/tests/bug28088.phpt +++ b/ext/date/tests/bug28088.phpt @@ -2,7 +2,7 @@ Bug #28088 (strtotime() cannot convert 00 hours") --FILE-- --EXPECT-- diff --git a/ext/date/tests/bug30532.phpt b/ext/date/tests/bug30532.phpt index faee0b316f..a9045336ad 100644 --- a/ext/date/tests/bug30532.phpt +++ b/ext/date/tests/bug30532.phpt @@ -2,7 +2,7 @@ Bug #30532 (strtotime - crossing daylight savings time) --FILE-- --EXPECT-- -string(1) "1" -string(1) "0" +unicode(1) "1" +unicode(1) "0"