mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 03:10:09 +02:00
[3.1.0] Fix broken autoloader, resulting in duplicate classes
- Factor out phpt directory parsing - More phpt tests git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1561 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -0,0 +1,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_once '../library/HTMLPurifier.auto.php';
|
||||
$config = HTMLPurifier_Config::createDefault();
|
||||
$purifier = new HTMLPurifier($config);
|
||||
echo $purifier->purify('<b>Salsa!') . PHP_EOL;
|
||||
assert("function_exists('__autoload')");
|
||||
|
||||
--EXPECT--
|
||||
<b>Salsa!</b>
|
||||
|
Reference in New Issue
Block a user