From: Derick Rethans Date: Mon, 17 Dec 2012 16:49:25 +0000 (+0000) Subject: Added another test to test the unmodified inherited methods. X-Git-Tag: php-5.5.0alpha4~13^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0bea9a1de7123d52b0339ad9d883bbe231122d5;p=php Added another test to test the unmodified inherited methods. --- diff --git a/ext/date/tests/date_time_point-inherited.phpt b/ext/date/tests/date_time_point-inherited.phpt new file mode 100644 index 0000000000..e35540753c --- /dev/null +++ b/ext/date/tests/date_time_point-inherited.phpt @@ -0,0 +1,25 @@ +--TEST-- +Tests for DateTimePoint. +--INI-- +date.timezone=Europe/London +--FILE-- +getTimezone(); +var_dump($x->getName()); + +echo "\ngetTimestamp():\n"; +$v = date_create_point($current); +$x = $v->getTimestamp(); +var_dump($x); +?> +--EXPECT-- +getTimezone(): +string(13) "Europe/London" + +getTimestamp(): +int(1356625448)