mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-14 08:33:01 +01:00
19 lines
527 B
PHP
19 lines
527 B
PHP
--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> |