Return to trait_class_exists_variation_003.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / class_object |
1.1 misho 1: --TEST-- 2: Test trait_exists() function : usage variations - case sensitivity 3: --FILE-- 4: <?php 5: /* Prototype : proto bool trait_exists(string traitname [, bool autoload]) 6: * Description: Checks if the trait exists 7: * Source code: Zend/zend_builtin_functions.c 8: * Alias to functions: 9: */ 10: 11: trait caseSensitivityTest {} 12: var_dump(trait_exists('casesensitivitytest')); 13: 14: echo "Done" 15: ?> 16: --EXPECTF-- 17: bool(true) 18: Done