Annotation of embedaddon/php/ext/spl/tests/spl_autoload_call_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: spl_autoload_call() function - basic test for spl_autoload_call()
3: --CREDITS--
4: Jean-Marc Fontaine <jean-marc.fontaine@alterway.fr>
5: # Alter Way Contribution Day 2011
6: --FILE--
7: <?php
8: function customAutolader($class) {
9: require_once __DIR__ . '/testclass.class.inc';
10: }
11: spl_autoload_register('customAutolader');
12:
13: spl_autoload_call('TestClass');
14: var_dump(class_exists('TestClass', false));
15: ?>
16: --EXPECTF--
17: %stestclass.class.inc
18: bool(true)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>