xref: /PHP-5.6/ext/date/tests/time_error.phpt (revision 0d422894)
1--TEST--
2Test wrong number of arguments for time()
3--FILE--
4<?php
5/*
6 * proto int time(void)
7 * Function is implemented in ext/date/php_date.c
8*/
9
10// Extra arguments are ignored
11$extra_arg = 1;
12echo "\nToo many arguments\n";
13var_dump (time($extra_arg));
14?>
15===DONE===
16--EXPECTF--
17Too many arguments
18int(%d)
19===DONE===