mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-20 12:31:53 +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:
parent
d67e17a69c
commit
90110a4e3a
1
NEWS
1
NEWS
@ -17,6 +17,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
- Spellcheck UTF-8: The Secret To Character Encoding
|
- Spellcheck UTF-8: The Secret To Character Encoding
|
||||||
- Fix improper removal of the contents of elements with only whitespace. Thanks
|
- Fix improper removal of the contents of elements with only whitespace. Thanks
|
||||||
Eric Wald for reporting.
|
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)
|
. Add verbose mode to command line test runner, use (--verbose)
|
||||||
. Turn on unit tests for UnitConverter
|
. Turn on unit tests for UnitConverter
|
||||||
. Fix missing version number in configuration %Attr.DefaultImageAlt (added 3.2.0)
|
. Fix missing version number in configuration %Attr.DefaultImageAlt (added 3.2.0)
|
||||||
|
@ -85,6 +85,17 @@ if (!SimpleReporter::inCli()) {
|
|||||||
$AC['php'] = $php;
|
$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
|
// Shell-script code is executed
|
||||||
|
|
||||||
if ($AC['xml']) {
|
if ($AC['xml']) {
|
||||||
@ -100,17 +111,6 @@ if ($AC['flush']) {
|
|||||||
htmlpurifier_flush($AC['php'], $reporter);
|
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
|
// Now, userland code begins to be executed
|
||||||
|
|
||||||
// setup special DefinitionCacheFactory decorator
|
// setup special DefinitionCacheFactory decorator
|
||||||
|
Loading…
Reference in New Issue
Block a user