Annotation of embedaddon/php/ext/date/tests/date_default_timezone_get_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test date_default_timezone_get() function : error conditions
3: --FILE--
4: <?php
5: /* Prototype : string date_default_timezone_get ( void )
6: * Description: Gets the default timezone used by all date/time functions in a script.
7: * Source code: ext/standard/data/php_date.c
8: */
9:
10: date_default_timezone_set("UTC");
11:
12: echo "*** Testing date_default_timezone_get() : error conditions ***\n";
13:
14: echo "\n-- Testing date_create() function with more than expected no. of arguments --\n";
15: $extra_arg = 99;
16: var_dump( date_default_timezone_get($extra_arg));
17:
18: ?>
19:
20: ===Done===
21: --EXPECTF--
22: *** Testing date_default_timezone_get() : error conditions ***
23:
24: -- Testing date_create() function with more than expected no. of arguments --
25: string(3) "UTC"
26:
27: ===Done===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>