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