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 -- 25 26Warning: date_default_timezone_get() expects exactly 0 parameters, 1 given in %sdate_default_timezone_get_error.php on line %d 27NULL 28 29===Done=== 30