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