Lines Matching refs:array_fill
2 Test array_fill() function : error conditions
5 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
11 echo "*** Testing array_fill() : error conditions ***\n";
14 echo "-- Testing array_fill() function with Zero arguments --\n";
15 var_dump( array_fill() );
18 echo "-- Testing array_fill() function with more than expected no. of arguments --\n";
23 var_dump( array_fill($start_key,$num,$val, $extra_arg) );
26 echo "-- Testing array_fill() function with less than expected no. of arguments --\n";
29 var_dump( array_fill($start_key,$num) );
31 //calling array_fill with negative values for 'num' parameter
33 var_dump( array_fill($start_key,$num,$val) );
38 *** Testing array_fill() : error conditions ***
39 -- Testing array_fill() function with Zero arguments --
41 Warning: array_fill() expects exactly 3 parameters, 0 given in %s on line %d
43 -- Testing array_fill() function with more than expected no. of arguments --
45 Warning: array_fill() expects exactly 3 parameters, 4 given in %s on line %d
47 -- Testing array_fill() function with less than expected no. of arguments --
49 Warning: array_fill() expects exactly 3 parameters, 2 given in %s on line %d
52 Warning: array_fill(): Number of elements can't be negative in %s on line %d