2008-02-17 23:59:23 +00:00
|
|
|
--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')");
|
2008-02-18 00:49:45 +00:00
|
|
|
require '../library/HTMLPurifier.auto.php';
|
|
|
|
require 'HTMLPurifier/PHPT/loading/_autoload.inc';
|
2008-02-17 23:59:23 +00:00
|
|
|
$config = HTMLPurifier_Config::createDefault();
|
|
|
|
$purifier = new HTMLPurifier($config);
|
2008-11-26 20:30:59 +00:00
|
|
|
echo $purifier->purify('<b>Salsa!') . "
|
|
|
|
";
|
2008-02-17 23:59:23 +00:00
|
|
|
|
|
|
|
--EXPECT--
|
2008-12-06 09:24:59 +00:00
|
|
|
<b>Salsa!</b>
|