mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +00:00
Augment test file so we can run from cli.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@137 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
9d411bd5cc
commit
79e5cd4543
@ -2,6 +2,7 @@
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
// load files, assume that simpletest directory is in path
|
||||
require_once 'simpletest/unit_tester.php';
|
||||
require_once 'simpletest/reporter.php';
|
||||
require_once 'simpletest/mock_objects.php';
|
||||
@ -37,6 +38,9 @@ $test->addTestFile('HTMLPurifier/AttrDef/EnumTest.php');
|
||||
$test->addTestFile('HTMLPurifier/AttrDef/IDTest.php');
|
||||
$test->addTestFile('HTMLPurifier/IDAccumulatorTest.php');
|
||||
|
||||
$test->run( new HtmlReporter() );
|
||||
if (SimpleReporter::inCli()) $reporter = new TextReporter();
|
||||
else $reporter = new HTMLReporter();
|
||||
|
||||
$test->run($reporter);
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user