summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_isSubclassOf_error1.phpt
blob: 2fabd023e64ad191c250ddebb9d34c2b697e32fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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