1--TEST-- 2Test gettimeofday() function : error conditions 3--FILE-- 4<?php 5/* Prototype : array gettimeofday([bool get_as_float]) 6 * Description: Returns the current time as array 7 * Source code: ext/standard/microtime.c 8 * Alias to functions: 9 */ 10 11echo "*** Testing gettimeofday() : error conditions ***\n"; 12 13 14//Test gettimeofday with one more than the expected number of arguments 15echo "\n-- Testing gettimeofday() function with more than expected no. of arguments --\n"; 16$get_as_float = true; 17$extra_arg = 10; 18var_dump( gettimeofday($get_as_float, $extra_arg) ); 19 20?> 21===DONE=== 22--EXPECTF-- 23*** Testing gettimeofday() : error conditions *** 24 25-- Testing gettimeofday() function with more than expected no. of arguments -- 26 27Warning: gettimeofday() expects at most 1 parameter, 2 given in %s on line %d 28NULL 29===DONE=== 30