blob: dc283ae5fedb69960f67507acfd4ddeaeab9d137 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--TEST--
Ensure that extending of undefined class throws the exception
--FILE--
<?php
try {
class A extends B {}
} catch (Error $e) {
var_dump(class_exists('A'));
var_dump(class_exists('B'));
throw $e;
}
?>
--EXPECTF--
bool(false)
bool(false)
Fatal error: Uncaught Error: Class "B" not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
|