'file', 'q' => 'quiet', ); htmlpurifier_parse_args($AC, $aliases); shell_exec("php ../maintenance/merge-library.php"); shell_exec('php ../maintenance/flush-definition-cache.php'); $test = new TestSuite('HTML Purifier Multiple Versions Test'); $file = ''; if ($AC['file']) { $test_files = array(); require 'test_files.php'; $test_files_lookup = array_flip($test_files); if (isset($test_files_lookup[$AC['file']])) { $file = '--file=' . $AC['file']; } else { echo "Invalid file passed\n"; exit; } } foreach ($versions_to_test as $version) { $flush = ''; if (is_array($version)) { $version = $version[0]; $flush = '--flush'; } if (!$AC['exclude-normal']) $test->addTestCase(new CliTestCase("$phpv $version index.php --xml $flush $file", $AC['quiet'])); if (!$AC['exclude-standalone']) $test->addTestCase(new CliTestCase("$phpv $version index.php --xml --standalone $file", $AC['quiet'])); } if ($AC['xml']) { $reporter = new XmlReporter(); } else { $reporter = new TextReporter(); } $test->run($reporter); shell_exec('php ../maintenance/flush-definition-cache.php');