blob: 0813f28308b1867eb3555897361215956d5a4254 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--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";
?>
--EXPECT--
*** Testing is_a() : usage variations ***
bool(true)
Done
|