1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-12 09:04:31 +02:00

Modernize some of the testing facilities.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Edward Z. Yang
2012-01-18 18:10:16 -05:00
parent 1c7fedff5a
commit 56a26cab14
3 changed files with 15 additions and 5 deletions

View File

@@ -51,9 +51,11 @@ $AC['standalone'] = false; // convenience for --distro=standalone
$AC['only-phpt'] = false; // --type=phpt
$AC['exclude-normal'] = false; // --distro=standalone
$AC['exclude-standalone'] = false; // --distro=normal
$AC['verbose'] = false;
$aliases = array(
'f' => 'file',
'q' => 'quiet',
'v' => 'verbose',
);
htmlpurifier_parse_args($AC, $aliases);
@@ -68,7 +70,7 @@ elseif ($AC['standalone']) $AC['distro'] = 'standalone';
if ($AC['xml']) {
$reporter = new XmlReporter();
} else {
$reporter = new TextReporter();
$reporter = new HTMLPurifier_SimpleTest_TextReporter($AC);
}
// Regenerate any necessary files