You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
370 B

--TEST--
ReflectionClass::isSubclassOf() - non-existent class error
--FILE--
<?php
class A {}
$rc = new ReflectionClass('A');
var_dump($rc->isSubclassOf('X'));
?>
--EXPECTF--
Fatal error: Uncaught exception 'ReflectionException' with message 'Class X does not exist' in %s:5
Stack trace:
#0 %s(5): ReflectionClass->isSubclassOf('X')
#1 {main}
thrown in %s on line 5