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:
@@ -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
|
||||
|
Reference in New Issue
Block a user