]> granicus.if.org Git - php/commitdiff
- Fixed tests.
authorDerick Rethans <derick@php.net>
Wed, 16 Jul 2008 07:35:56 +0000 (07:35 +0000)
committerDerick Rethans <derick@php.net>
Wed, 16 Jul 2008 07:35:56 +0000 (07:35 +0000)
ext/date/tests/bug41523-64bit.phpt
ext/date/tests/bug41709.phpt
ext/date/tests/date_parse_001.phpt

index 46dd0c4e1d4f92eedb29559403c84ffe51c01d8c..4da00125bc336418e388a2c9f94884dc3bf0cbe2 100644 (file)
@@ -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)
index 69c7cb4f472709ee699d2e8f435bd286b0991b40..624da0cd37fc61cc2e845be0f9f80d0d2802d195 100644 (file)
@@ -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
index 5152ce99979996c252d5686c36b5068ea0151ee4..4958151a6f6b08a33f209ff6ed7008734433b3c6 100644 (file)
@@ -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