xref: /PHP-8.1/tests/classes/autoload_002.phpt (revision c5401854)
1--TEST--
2ZE2 Autoload and get_class_methods
3--SKIPIF--
4<?php
5    if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already');
6?>
7--FILE--
8<?php
9
10spl_autoload_register(function ($class_name) {
11    require_once(__DIR__ . '/' . $class_name . '.inc');
12    echo 'autoload(' . $class_name . ")\n";
13});
14
15var_dump(get_class_methods('autoload_root'));
16
17?>
18--EXPECT--
19autoload(autoload_root)
20array(1) {
21  [0]=>
22  string(12) "testFunction"
23}
24