Lines Matching refs:imagecolorstotal
2 Test imagecolorstotal() function : error conditions - Pass incorrect number of arguments
8 if(!function_exists('imagecolorstotal')) {
9 die('skip imagecolorstotal function is not available');
14 /* Prototype : int imagecolorstotal ( resource $image )
19 echo "*** Testing imagecolorstotal() : error conditions ***\n";
24 echo "\n-- Testing imagecolorstotal() function with Zero arguments --\n";
25 var_dump( imagecolorstotal() );
27 echo "\n-- Testing imagecolorstotal() function with more than expected no. of arguments --\n";
29 var_dump( imagecolorstotal($im, $extra_arg) );
31 echo "\n-- Testing imagecolorstotal() function with a invalid resource\n";
32 var_dump( imagecolorstotal($im) );
38 *** Testing imagecolorstotal() : error conditions ***
40 -- Testing imagecolorstotal() function with Zero arguments --
42 Warning: imagecolorstotal() expects exactly 1 parameter, 0 given in %s on line %d
45 -- Testing imagecolorstotal() function with more than expected no. of arguments --
47 Warning: imagecolorstotal() expects exactly 1 parameter, 2 given in %s on line %d
50 -- Testing imagecolorstotal() function with a invalid resource
52 Warning: imagecolorstotal(): supplied resource is not a valid Image resource in %s on line %d