pastafarianstvi.cz/libraries/htmlpurifier-4.14.0/tests/HTMLPurifier/PHPT/loading/auto-without-spl-with-autoload.phpt

21 lines
525 B
Text
Raw Normal View History

2022-11-19 17:30:09 +01:00
--TEST--
HTMLPurifier.auto.php without spl_autoload_register but with userland
__autoload() defined test
--SKIPIF--
<?php
if (function_exists('spl_autoload_register')) {
echo "skip - spl_autoload_register() available";
}
--FILE--
<?php
function __autoload($class) {
echo "Autoloading $class...
";
eval("class $class {}");
}
require '../library/HTMLPurifier.auto.php';
require 'HTMLPurifier/PHPT/loading/_no-autoload.inc';
$purifier = new HTMLPurifier();
--EXPECT--
Autoloading HTMLPurifier...