php-src/ext/date/tests/time_error.phpt

19 lines
319 B
PHP

--TEST--
Test wrong number of arguments for time()
--FILE--
<?php
/*
* proto int time(void)
* Function is implemented in ext/date/php_date.c
*/
// Extra arguments are ignored
$extra_arg = 1;
echo "\nToo many arguments\n";
var_dump (time($extra_arg));
?>
===DONE===
--EXPECTF--
Too many arguments
int(%d)
===DONE===