aboutsummaryrefslogtreecommitdiffstats
path: root/lib/htmlpurifier/tests/HTMLPurifier/PHPT/loading/auto-without-spl-with-autoload.phpt
blob: 2b6f49d8cacb509489754a9790899ab7abe38270 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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...