Annotation of embedaddon/php/ext/date/tests/date_timestamp_get.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: DateTime: Test correct setup and correct DateTime parameter to date_timestamp_get()
3: --CREDITS--
4: Havard Eide <nucleuz@gmail.com>
5: #PHPTestFest2009 Norway 2009-06-09 \o/
6: --INI--
7: date.timezone=UTC
8: --FILE--
9: <?php
10: $tz = date_timestamp_get(new DateTime());
11: var_dump(is_int($tz));
12: echo "\n\n";
13: $tz = date_timestamp_get(time());
14: ?>
15: --EXPECTF--
16: bool(true)
17:
18:
19:
20: Warning: date_timestamp_get() expects parameter 1 to be DateTime, integer given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>