Lines Matching refs:trait_exists
2 Test trait_exists() function : basic functionality
5 echo "*** Testing trait_exists() : basic functionality ***\n";
13 echo "Calling trait_exists() on non-existent trait with autoload explicitly enabled:\n";
14 var_dump( trait_exists('C', true) );
15 echo "\nCalling trait_exists() on existing trait with autoload explicitly enabled:\n";
16 var_dump( trait_exists('MyTrait', true) );
18 echo "\nCalling trait_exists() on non-existent trait with autoload explicitly enabled:\n";
19 var_dump( trait_exists('D', false) );
20 echo "\nCalling trait_exists() on existing trait with autoload explicitly disabled:\n";
21 var_dump( trait_exists('MyTrait', false) );
23 echo "\nCalling trait_exists() on non-existent trait with autoload unspecified:\n";
24 var_dump( trait_exists('E') );
25 echo "\nCalling trait_exists() on existing trait with autoload unspecified:\n";
26 var_dump( trait_exists('MyTrait') );
31 *** Testing trait_exists() : basic functionality ***
32 Calling trait_exists() on non-existent trait with autoload explicitly enabled:
36 Calling trait_exists() on existing trait with autoload explicitly enabled:
39 Calling trait_exists() on non-existent trait with autoload explicitly enabled:
42 Calling trait_exists() on existing trait with autoload explicitly disabled:
45 Calling trait_exists() on non-existent trait with autoload unspecified:
49 Calling trait_exists() on existing trait with autoload unspecified: