]> granicus.if.org Git - php/commitdiff
- Fixed testcases.
authorDerick Rethans <derick@php.net>
Mon, 7 Apr 2008 17:41:48 +0000 (17:41 +0000)
committerDerick Rethans <derick@php.net>
Mon, 7 Apr 2008 17:41:48 +0000 (17:41 +0000)
ext/date/tests/013.phpt
ext/date/tests/014.phpt
ext/date/tests/bug41523-64bit.phpt

index 75e31d5c538a69ccead8d0ab88f1ec745006d294..a0943613ac08f18f94841d988a07de0561f9d238 100644 (file)
@@ -20,7 +20,13 @@ var_dump($dto->format("Y.m.d H:i:s"));
 echo "Done\n";
 ?>
 --EXPECTF--
-object(DateTime)#%d (0) {
+object(DateTime)#%d (3) {
+  ["date"]=>
+  string(19) "2006-12-12 00:00:00"
+  ["timezone_type"]=>
+  int(3)
+  ["timezone"]=>
+  string(3) "UTC"
 }
 string(19) "2006.12.12 00:00:00"
 
@@ -37,7 +43,13 @@ NULL
 string(19) "2008.01.29 00:00:00"
 Done
 --UEXPECTF--
-object(DateTime)#%d (0) {
+object(DateTime)#%d (3) {
+  [u"date"]=>
+  unicode(19) "2006-12-12 00:00:00"
+  [u"timezone_type"]=>
+  int(3)
+  [u"timezone"]=>
+  string(3) "UTC"
 }
 unicode(19) "2006.12.12 00:00:00"
 
index af57e55dd4cc3396ca60421fd8e0d63250b18152..d83947cf1ae017b08090dd46ea3d1f2331f1023e 100644 (file)
@@ -19,7 +19,32 @@ echo "Done\n";
 
 ?>
 --EXPECTF-- 
-object(DateTime)#%d (0) {
+object(DateTime)#%d (3) {
+  ["date"]=>
+  string(19) "2006-12-12 00:00:00"
+  ["timezone_type"]=>
+  int(3)
+  ["timezone"]=>
+  string(3) "UTC"
+}
+object(DateTimeZone)#%d (0) {
+}
+
+Warning: timezone_offset_get() expects exactly 2 parameters, 0 given in %s on line %d
+bool(false)
+int(0)
+
+Warning: timezone_offset_get() expects parameter 1 to be DateTimeZone, object given in %s on line %d
+bool(false)
+Done
+--UEXPECTF-- 
+object(DateTime)#%d (3) {
+  [u"date"]=>
+  unicode(19) "2006-12-12 00:00:00"
+  [u"timezone_type"]=>
+  int(3)
+  [u"timezone"]=>
+  string(3) "UTC"
 }
 object(DateTimeZone)#%d (0) {
 }
index 594cdf88551d14368e6e486d013eda2428d16a9c..ee9c750b4021038d360a832ab5b0cef055ca1c53 100644 (file)
@@ -42,7 +42,13 @@ array(12) {
   bool(false)
 }
 int(-62169984000)
-object(DateTime)#1 (0) {
+object(DateTime)#1 (3) {
+  ["date"]=>
+  string(20) "-0001-11-30 00:00:00"
+  ["timezone_type"]=>
+  int(3)
+  ["timezone"]=>
+  string(3) "UTC"
 }
 -0001-11-30T00:00:00+0000
 --UEXPECT--
@@ -75,6 +81,12 @@ array(12) {
   bool(false)
 }
 int(-62169984000)
-object(DateTime)#1 (0) {
+object(DateTime)#1 (3) {
+  [u"date"]=>
+  unicode(20) "-0001-11-30 00:00:00"
+  [u"timezone_type"]=>
+  int(3)
+  [u"timezone"]=>
+  string(3) "UTC"
 }
 -0001-11-30T00:00:00+0000