is_a_variation_003.phpt   [plain text]


--TEST--
Test is_a() function : usage variations  - case sensitivity
--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 ***

Strict Standards: is_a(): Deprecated. Please use the instanceof operator in %s on line 13
bool(true)
Done