Return to is_a_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 is_a() function : usage variations - case sensitivity 3: --INI-- 4: error_reporting=E_ALL | E_STRICT | E_DEPRECATED 5: --FILE-- 6: <?php 7: /* Prototype : proto bool is_a(object object, string class_name) 8: * Description: Returns true if the object is of this class or has this class as one of its parents 9: * Source code: Zend/zend_builtin_functions.c 10: * Alias to functions: 11: */ 12: 13: echo "*** Testing is_a() : usage variations ***\n"; 14: 15: class caseSensitivityTest {} 16: class caseSensitivityTestChild extends caseSensitivityTest {} 17: 18: var_dump(is_a(new caseSensitivityTestChild, 'caseSensitivityTEST')); 19: 20: echo "Done"; 21: ?> 22: --EXPECTF-- 23: *** Testing is_a() : usage variations *** 24: bool(true) 25: Done