- Fixed testcases.

This commit is contained in:
Derick Rethans 2008-04-07 17:41:48 +00:00
parent 4ab97f25a8
commit d3a0dbf991
3 changed files with 54 additions and 5 deletions

View 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"

View 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) {
}

View 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