From: Derick Rethans Date: Wed, 16 Jul 2008 07:35:56 +0000 (+0000) Subject: - Fixed tests. X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae2c8698ac44da583fede066a0c64225d28a354a;p=php - Fixed tests. --- diff --git a/ext/date/tests/bug41523-64bit.phpt b/ext/date/tests/bug41523-64bit.phpt index 46dd0c4e1d..4da00125bc 100644 --- a/ext/date/tests/bug41523-64bit.phpt +++ b/ext/date/tests/bug41523-64bit.phpt @@ -29,9 +29,11 @@ array(12) { [u"fraction"]=> float(0) [u"warning_count"]=> - int(0) + int(1) [u"warnings"]=> - array(0) { + array(1) { + [20]=> + unicode(27) "The parsed date was invalid" } [u"error_count"]=> int(0) diff --git a/ext/date/tests/bug41709.phpt b/ext/date/tests/bug41709.phpt index 69c7cb4f47..624da0cd37 100644 --- a/ext/date/tests/bug41709.phpt +++ b/ext/date/tests/bug41709.phpt @@ -18,9 +18,10 @@ Array [minute] => 0 [second] => 0 [fraction] => 0 - [warning_count] => 0 + [warning_count] => 1 [warnings] => Array ( + [22] => The parsed date was invalid ) [error_count] => 1 diff --git a/ext/date/tests/date_parse_001.phpt b/ext/date/tests/date_parse_001.phpt index 5152ce9997..4958151a6f 100644 --- a/ext/date/tests/date_parse_001.phpt +++ b/ext/date/tests/date_parse_001.phpt @@ -89,9 +89,11 @@ array(15) { [u"fraction"]=> bool(false) [u"warning_count"]=> - int(0) + int(1) [u"warnings"]=> - array(0) { + array(1) { + [12]=> + unicode(27) "The parsed date was invalid" } [u"error_count"]=> int(1) @@ -125,9 +127,11 @@ array(12) { [u"fraction"]=> bool(false) [u"warning_count"]=> - int(0) + int(1) [u"warnings"]=> - array(0) { + array(1) { + [11]=> + unicode(27) "The parsed date was invalid" } [u"error_count"]=> int(0) @@ -181,9 +185,11 @@ array(12) { [u"fraction"]=> bool(false) [u"warning_count"]=> - int(0) + int(1) [u"warnings"]=> - array(0) { + array(1) { + [8]=> + unicode(27) "The parsed date was invalid" } [u"error_count"]=> int(0) @@ -298,6 +304,6 @@ array(12) { bool(false) } -Warning: date_parse() expects parameter 1 to be binary string, array given in %s on line %d +Warning: date_parse() expects parameter 1 to be binary string, array given in /home/derick/dev/php/php-6.0dev/ext/date/tests/date_parse_001.php on line 11 bool(false) Done