mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
- Fixed testcases.
This commit is contained in:
parent
4ab97f25a8
commit
d3a0dbf991
3 changed files with 54 additions and 5 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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) {
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue