1--TEST--
2Test 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
12echo "*** Testing get_defined_functions() : error conditions ***\n";
13
14
15echo "\n-- Testing get_defined_functions() function with more than expected no. of arguments --\n";
16$extra_arg = 10;
17var_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
26Warning: get_defined_functions() expects exactly 0 parameters, 1 given in %s on line %d
27NULL
28
29===Done===
30