php-src/tests/classes/autoload_001.phpt
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

20 lines
413 B
PHP

--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)