Lines Matching refs:trait_exists
2 Test trait_exists() function : basic functionality
5 /* Prototype : proto bool trait_exists(string traitname [, bool autoload])
11 echo "*** Testing trait_exists() : basic functionality ***\n";
19 echo "Calling trait_exists() on non-existent trait with autoload explicitly enabled:\n";
20 var_dump( trait_exists('C', true) );
21 echo "\nCalling trait_exists() on existing trait with autoload explicitly enabled:\n";
22 var_dump( trait_exists('MyTrait', true) );
24 echo "\nCalling trait_exists() on non-existent trait with autoload explicitly enabled:\n";
25 var_dump( trait_exists('D', false) );
26 echo "\nCalling trait_exists() on existing trait with autoload explicitly disabled:\n";
27 var_dump( trait_exists('MyTrait', false) );
29 echo "\nCalling trait_exists() on non-existent trait with autoload unspecified:\n";
30 var_dump( trait_exists('E') );
31 echo "\nCalling trait_exists() on existing trait with autoload unspecified:\n";
32 var_dump( trait_exists('MyTrait') );
37 *** Testing trait_exists() : basic functionality ***
38 Calling trait_exists() on non-existent trait with autoload explicitly enabled:
42 Calling trait_exists() on existing trait with autoload explicitly enabled:
45 Calling trait_exists() on non-existent trait with autoload explicitly enabled:
48 Calling trait_exists() on existing trait with autoload explicitly disabled:
51 Calling trait_exists() on non-existent trait with autoload unspecified:
55 Calling trait_exists() on existing trait with autoload unspecified: