blob: ef327ed37620f9dfc68dfe723f94cd38d9591f0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--TEST--
Ensure ReflectionClass::implementsInterface triggers autoload.
--FILE--
<?php
spl_autoload_register(function ($name) {
echo "In autoload: ";
var_dump($name);
});
$rc = new ReflectionClass("stdClass");
try {
$rc->implementsInterface("UndefI");
} catch (ReflectionException $e) {
echo $e->getMessage();
}
?>
--EXPECT--
In autoload: string(6) "UndefI"
Interface "UndefI" does not exist
|