php-src/ext/spl/tests/spl_autoload_call_basic.phpt
Patrick Allaert ea25a9be03 Added tests contributions on spl_autoload and stream_context_set_option()
Thank you Jean-Marc Fontaine and Alter Way
2011-12-09 11:45:39 +00:00

19 lines
443 B
PHP

--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)