Lines Matching refs:trait_exists
2 Test trait_exists() function : error conditions (wrong number of arguments)
5 /* Prototype : proto bool trait_exists(string traitname [, bool autoload])
15 echo "*** Testing trait_exists() : error conditions ***\n";
18 echo "\n-- Testing trait_exists() function with Zero arguments --\n";
19 var_dump( trait_exists() );
21 //Test trait_exists with one more than the expected number of arguments
22 echo "\n-- Testing trait_exists() function with more than expected no. of arguments --\n";
26 var_dump( trait_exists($traitname, $autoload, $extra_arg) );
31 *** Testing trait_exists() : error conditions ***
33 -- Testing trait_exists() function with Zero arguments --
35 Warning: trait_exists() expects at least 1 parameter, 0 given in %s on line 16
38 -- Testing trait_exists() function with more than expected no. of arguments --
40 Warning: trait_exists() expects at most 2 parameters, 3 given in %s on line 23