--TEST--
Test next() function : error conditions - Pass incorrect number of arguments
--FILE--
<?php
echo "*** Testing next() : error conditions ***\n";
echo "\n-- Testing next() function with Zero arguments --\n";
var_dump( next() );
echo "\n-- Testing next() function with more than expected no. of arguments --\n";
$array_arg = array(1, 2);
$extra_arg = 10;
var_dump( next($array_arg, $extra_arg) );
?>
===DONE===
--EXPECTF--
*** Testing next() : error conditions ***
-- Testing next() function with Zero arguments --
Warning: next() expects exactly 1 parameter, 0 given in %s on line %d
NULL
-- Testing next() function with more than expected no. of arguments --
Warning: next() expects exactly 1 parameter, 2 given in %s on line %d
NULL
===DONE===