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