1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 05:21:02 +02:00
Files
archived-php-src/tests/classes/autoload_002.phpt
Peter Kokot 5da3ed69a6 Rename *.p5c files to *.inc
When including files in PHP tests a good practice so far has been to use
the *.inc extension. This patch renames few *.p5c files that are
included in phpt files.
2018-09-21 23:21:14 +02:00

26 lines
485 B
PHP

--TEST--
ZE2 Autoload and get_class_methods
--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(dirname(__FILE__) . '/' . $class_name . '.inc');
echo 'autoload(' . $class_name . ")\n";
});
var_dump(get_class_methods('autoload_root'));
?>
===DONE===
--EXPECT--
autoload(autoload_root)
array(1) {
[0]=>
string(12) "testFunction"
}
===DONE===