summaryrefslogtreecommitdiff
path: root/tests/classes/autoload_001.phpt
blob: 7fe6757d6859eee0e779b9a3016b011c9a446025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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'));

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