mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +00:00
5ce0ae7056
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@105 48356398-32a2-884e-a903-53898d9a118a
26 lines
775 B
PHP
26 lines
775 B
PHP
<?php
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
require_once 'simpletest/unit_tester.php';
|
|
require_once 'simpletest/reporter.php';
|
|
require_once 'simpletest/mock_objects.php';
|
|
|
|
require_once 'Debugger.php';
|
|
|
|
// emulates inserting a dir called HTMLPurifier into your class dir
|
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../library');
|
|
|
|
$test = new GroupTest('HTMLPurifier');
|
|
|
|
$test->addTestFile('HTMLPurifier/LexerTest.php');
|
|
$test->addTestFile('HTMLPurifier/Lexer/DirectLexTest.php');
|
|
//$test->addTestFile('TokenTest.php');
|
|
$test->addTestFile('HTMLPurifier/DefinitionTest.php');
|
|
$test->addTestFile('HTMLPurifier/ChildDefTest.php');
|
|
$test->addTestFile('HTMLPurifier/GeneratorTest.php');
|
|
$test->addTestFile('HTMLPurifier/EntityLookupTest.php');
|
|
|
|
$test->run( new HtmlReporter() );
|
|
|
|
?>
|