Return to autoload_002.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes |
1.1 ! misho 1: --TEST-- ! 2: ZE2 Autoload and get_class_methods ! 3: --SKIPIF-- ! 4: <?php ! 5: if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ! 6: if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); ! 7: ?> ! 8: --FILE-- ! 9: <?php ! 10: ! 11: function __autoload($class_name) ! 12: { ! 13: require_once(dirname(__FILE__) . '/' . $class_name . '.p5c'); ! 14: echo __FUNCTION__ . '(' . $class_name . ")\n"; ! 15: } ! 16: ! 17: var_dump(get_class_methods('autoload_root')); ! 18: ! 19: ?> ! 20: ===DONE=== ! 21: --EXPECT-- ! 22: __autoload(autoload_root) ! 23: array(1) { ! 24: [0]=> ! 25: string(12) "testFunction" ! 26: } ! 27: ===DONE===