php-src/tests/classes/autoload_013.phpt
2008-05-26 15:52:06 +00:00

23 lines
432 B
PHP

--TEST--
Ensure the ReflectionClass constructor triggers autoload.
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php
function __autoload($name)
{
echo "In autoload: ";
var_dump($name);
}
try {
new ReflectionClass("UndefC");
}
catch (ReflectionException $e) {
echo $e->getMessage();
}
?>
--EXPECT--
In autoload: unicode(6) "UndefC"
Class UndefC does not exist