summaryrefslogtreecommitdiff
path: root/tests/classes/autoload_003.phpt
blob: 05887433c363ccac87cf8f26601930545fa130b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
ZE2 Autoload and derived classes
--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(class_exists('autoload_derived'));

?>
--EXPECT--
autoload(autoload_root)
autoload(autoload_derived)
bool(true)