summaryrefslogtreecommitdiff
path: root/tests/classes/autoload_002.phpt
blob: 7f5aa6c9cc9e48e6537e43fda3b82c75d8e1dddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--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===