Lines Matching refs:each
2 Test each() function : error conditions - pass incorrect number of args
5 /* Prototype : array each(array $arr)
12 * Pass an incorrect number of arguments to each() to test behaviour
15 echo "*** Testing each() : error conditions ***\n";
18 echo "\n-- Testing each() function with Zero arguments --\n";
19 var_dump( each() );
21 //Test each with one more than the expected number of arguments
22 echo "\n-- Testing each() function with more than expected no. of arguments --\n";
25 var_dump( each($arr, $extra_arg) );
31 *** Testing each() : error conditions ***
33 -- Testing each() function with Zero arguments --
35 Warning: each() expects exactly 1 parameter, 0 given in %s on line %d
38 -- Testing each() function with more than expected no. of arguments --
40 Warning: each() expects exactly 1 parameter, 2 given in %s on line %d