Lines Matching refs:ezmlm_hash
2 Test ezmlm_hash() function : error conditions
5 /* Prototype : int ezmlm_hash ( string $addr )
10 echo "*** Testing ezmlm_hash() : error conditions ***\n";
12 echo "\n-- Testing ezmlm_hash() function with fewer than expected no. of arguments --\n";
13 var_dump( ezmlm_hash() );
15 echo "\n-- Testing ezmlm_hash() function with more than expected no. of arguments --\n";
17 var_dump( ezmlm_hash("webmaster@example.com", $extra_arg) );
19 echo "\n-- Testing ezmlm_hash() function with invalid input - ARRAY --\n";
22 var_dump( ezmlm_hash($array_arg) );
24 echo "\n-- Testing ezmlm_hash() function with invalid input - OBJECT without 'cast_object' method -…
29 var_dump( ezmlm_hash($obj_arg) );
31 echo "\n-- Testing ezmlm_hash() function with invalid input - RESOURCE --\n";
34 var_dump( ezmlm_hash($file_handle) );
40 *** Testing ezmlm_hash() : error conditions ***
42 -- Testing ezmlm_hash() function with fewer than expected no. of arguments --
44 Warning: ezmlm_hash() expects exactly 1 parameter, 0 given in %s on line %d
47 -- Testing ezmlm_hash() function with more than expected no. of arguments --
49 Warning: ezmlm_hash() expects exactly 1 parameter, 2 given in %s on line %d
52 -- Testing ezmlm_hash() function with invalid input - ARRAY --
54 Warning: ezmlm_hash() expects parameter 1 to be string, array given in %s on line %d
57 -- Testing ezmlm_hash() function with invalid input - OBJECT without 'cast_object' method --
59 Warning: ezmlm_hash() expects parameter 1 to be string, object given in %s on line %d
62 -- Testing ezmlm_hash() function with invalid input - RESOURCE --
64 Warning: ezmlm_hash() expects parameter 1 to be string, resource given in %s on line %d