mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 13:21:51 +00:00
619d5d9bc1
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@119 48356398-32a2-884e-a903-53898d9a118a
28 lines
927 B
PHP
28 lines
927 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/ChildDefTest.php');
|
|
$test->addTestFile('HTMLPurifier/GeneratorTest.php');
|
|
$test->addTestFile('HTMLPurifier/EntityLookupTest.php');
|
|
$test->addTestFile('HTMLPurifier/Strategy/RemoveForeignElementsTest.php');
|
|
$test->addTestFile('HTMLPurifier/Strategy/MakeWellFormedTest.php');
|
|
$test->addTestFile('HTMLPurifier/Strategy/FixNestingTest.php');
|
|
|
|
$test->run( new HtmlReporter() );
|
|
|
|
?>
|