summaryrefslogtreecommitdiff
path: root/ext/spl/tests/spl_autoload_call_basic.phpt
blob: 2bd65c22be4babf719cf90338e35d48800a7dde0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
spl_autoload_call() function - basic test for spl_autoload_call()
--CREDITS--
Jean-Marc Fontaine <jean-marc.fontaine@alterway.fr>
# Alter Way Contribution Day 2011
--FILE--
<?php
function customAutolader($class) {
    require_once __DIR__ . '/testclass.class.inc';
}
spl_autoload_register('customAutolader');

spl_autoload_call('TestClass');
var_dump(class_exists('TestClass', false));
?>
--EXPECTF--
%stestclass.class.inc
bool(true)