1--TEST--
2Test 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
10date_default_timezone_set("UTC");
11
12echo "*** Testing date_default_timezone_get() : error conditions ***\n";
13
14echo "\n-- Testing date_create() function with more than expected no. of arguments --\n";
15$extra_arg = 99;
16var_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 --
25string(3) "UTC"
26
27===Done===