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

?>
===DONE===
--EXPECT--
autoload(autoload_root)
bool(true)
===DONE===