Lines Matching refs:count
2 Test count() function : error conditions - pass incorrect number of args
5 /* Prototype : int count(mixed var [, int mode])
11 * Pass incorrect number of arguments to count() to test behaviour
14 echo "*** Testing count() : error conditions ***\n";
17 echo "\n-- Testing count() function with Zero arguments --\n";
18 var_dump( count() );
20 //Test count with one more than the expected number of arguments
21 echo "\n-- Testing count() function with more than expected no. of arguments --\n";
25 var_dump( count($var, $mode, $extra_arg) );
30 *** Testing count() : error conditions ***
32 -- Testing count() function with Zero arguments --
34 Warning: count() expects at least 1 parameter, 0 given in %s on line %d
37 -- Testing count() function with more than expected no. of arguments --
39 Warning: count() expects at most 2 parameters, 3 given in %s on line %d