Your IP : 216.73.216.48


Current Path : /hdd/hdd21/main/php/php-7.3.1/tests/classes/
Upload File :
Current File : //hdd/hdd21/main/php/php-7.3.1/tests/classes/autoload_017.phpt

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