Annotation of embedaddon/php/ext/date/tests/time_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test 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;
        !            12: echo "\nToo many arguments\n";
        !            13: var_dump (time($extra_arg));
        !            14: ?>
        !            15: ===DONE===
        !            16: --EXPECTF--
        !            17: Too many arguments
        !            18: int(%d)
        !            19: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>