mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 03:10:09 +02:00
Modernize some of the testing facilities.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
@@ -107,6 +107,14 @@ if ($AC['standalone']) {
|
||||
require '../library/HTMLPurifier.autoload.php';
|
||||
require 'HTMLPurifier/Harness.php';
|
||||
|
||||
// immediately load external libraries, so we can bail out early if
|
||||
// they're bad
|
||||
if ($GLOBALS['HTMLPurifierTest']['PEAR']) {
|
||||
if ($GLOBALS['HTMLPurifierTest']['Net_IDNA2']) {
|
||||
require_once 'Net/IDNA2.php';
|
||||
}
|
||||
}
|
||||
|
||||
// Shell-script code is executed
|
||||
|
||||
if ($AC['xml']) {
|
||||
|
Reference in New Issue
Block a user