Annotation of embedaddon/php/Zend/tests/get_defined_functions_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test get_defined_functions() function : error conditions
3: --FILE--
4: <?php
5:
6: /* Prototype : array get_defined_functions ( void )
7: * Description: Gets an array of all defined functions.
8: * Source code: Zend/zend_builtin_functions.c
9: */
10:
11:
12: echo "*** Testing get_defined_functions() : error conditions ***\n";
13:
14:
15: echo "\n-- Testing get_defined_functions() function with more than expected no. of arguments --\n";
16: $extra_arg = 10;
17: var_dump( get_defined_functions($extra_arg) );
18:
19: ?>
20: ===Done===
21: --EXPECTF--
22: *** Testing get_defined_functions() : error conditions ***
23:
24: -- Testing get_defined_functions() function with more than expected no. of arguments --
25:
26: Warning: get_defined_functions() expects exactly 0 parameters, 1 given in %s on line %d
27: NULL
28:
29: ===Done===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>