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