0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-08 06:48:42 +00:00

Fix broken test-suite in early versions of PHP.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
Edward Z. Yang 2008-12-05 15:50:59 -05:00
parent d67e17a69c
commit 90110a4e3a
2 changed files with 12 additions and 11 deletions

1
NEWS
View File

@ -17,6 +17,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
- Spellcheck UTF-8: The Secret To Character Encoding
- Fix improper removal of the contents of elements with only whitespace. Thanks
Eric Wald for reporting.
- Fix broken test suite in versions of PHP without spl_autoload_register()
. Add verbose mode to command line test runner, use (--verbose)
. Turn on unit tests for UnitConverter
. Fix missing version number in configuration %Attr.DefaultImageAlt (added 3.2.0)

View File

@ -85,6 +85,17 @@ if (!SimpleReporter::inCli()) {
$AC['php'] = $php;
}
// initialize and load HTML Purifier
// use ?standalone to load the alterative standalone stub
if ($AC['standalone']) {
require '../library/HTMLPurifier.standalone.php';
} else {
require '../library/HTMLPurifier.path.php';
require 'HTMLPurifier.includes.php';
}
require '../library/HTMLPurifier.autoload.php';
require 'HTMLPurifier/Harness.php';
// Shell-script code is executed
if ($AC['xml']) {
@ -100,17 +111,6 @@ if ($AC['flush']) {
htmlpurifier_flush($AC['php'], $reporter);
}
// initialize and load HTML Purifier
// use ?standalone to load the alterative standalone stub
if ($AC['standalone']) {
require '../library/HTMLPurifier.standalone.php';
} else {
require '../library/HTMLPurifier.path.php';
require 'HTMLPurifier.includes.php';
}
require '../library/HTMLPurifier.autoload.php';
require 'HTMLPurifier/Harness.php';
// Now, userland code begins to be executed
// setup special DefinitionCacheFactory decorator