1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/ext/standard/tests/class_object/is_a_variation_003.phpt
T
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

24 lines
626 B
PHP

--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