aboutsummaryrefslogtreecommitdiffstats
path: root/lib/htmlpurifier/tests/HTMLPurifier/PHPT/loading/auto-without-spl-autoload.phpt
blob: aeee9dceed8e4e3166afc823b9f9b1f950142f94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
HTMLPurifier.auto.php without spl_autoload_register without userland autoload loading test
--SKIPIF--
<?php
if (function_exists('spl_autoload_register')) {
    echo "skip - spl_autoload_register() available";
}
--FILE--
<?php
assert("!function_exists('__autoload')");
require '../library/HTMLPurifier.auto.php';
require 'HTMLPurifier/PHPT/loading/_autoload.inc';
$config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config);
echo $purifier->purify('<b>Salsa!') . "
";

--EXPECT--
<b>Salsa!</b>