Lines Matching refs:next
2 Test next() function : error conditions - Pass incorrect number of arguments
5 /* Prototype : mixed next(array $array_arg)
6 * Description: Move array argument's internal pointer to the next element and return it
11 * Pass incorrect number of arguments to next() to test behaviour
14 echo "*** Testing next() : error conditions ***\n";
17 echo "\n-- Testing next() function with Zero arguments --\n";
18 var_dump( next() );
20 //Test next with one more than the expected number of arguments
21 echo "\n-- Testing next() function with more than expected no. of arguments --\n";
24 var_dump( next($array_arg, $extra_arg) );
28 *** Testing next() : error conditions ***
30 -- Testing next() function with Zero arguments --
32 Warning: next() expects exactly 1 parameter, 0 given in %s on line %d
35 -- Testing next() function with more than expected no. of arguments --
37 Warning: next() expects exactly 1 parameter, 2 given in %s on line %d