xref: /PHP-7.3/tests/classes/autoload_003.phpt (revision 782352c5)
1--TEST--
2ZE2 Autoload and derived classes
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(dirname(__FILE__) . '/' . $class_name . '.p5c');
12	echo 'autoload(' . $class_name . ")\n";
13});
14
15var_dump(class_exists('autoload_derived'));
16
17?>
18===DONE===
19--EXPECT--
20autoload(autoload_root)
21autoload(autoload_derived)
22bool(true)
23===DONE===
24