Lines Matching refs:method_exists
2 Test method_exists() function : error conditions - wrong number of args
5 /* Prototype : proto bool method_exists(object object, string method)
11 echo "*** Testing method_exists() : error conditions ***\n";
14 //Test method_exists with one more than the expected number of arguments
15 echo "\n-- Testing method_exists() function with more than expected no. of arguments --\n";
19 var_dump( method_exists($object, $method, $extra_arg) );
21 // Testing method_exists with one less than the expected number of arguments
22 echo "\n-- Testing method_exists() function with less than expected no. of arguments --\n";
24 var_dump( method_exists($object) );
29 *** Testing method_exists() : error conditions ***
31 -- Testing method_exists() function with more than expected no. of arguments --
33 Warning: method_exists() expects exactly 2 parameters, 3 given in %s on line 16
36 -- Testing method_exists() function with less than expected no. of arguments --
38 Warning: method_exists() expects exactly 2 parameters, 1 given in %s on line 21