php-src/tests/classes/autoload_002.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

24 lines
452 B
PHP

--TEST--
ZE2 Autoload and get_class_methods
--SKIPIF--
<?php
if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already');
?>
--FILE--
<?php
spl_autoload_register(function ($class_name) {
require_once(__DIR__ . '/' . $class_name . '.inc');
echo 'autoload(' . $class_name . ")\n";
});
var_dump(get_class_methods('autoload_root'));
?>
--EXPECT--
autoload(autoload_root)
array(1) {
[0]=>
string(12) "testFunction"
}