2006-07-21 23:27:00 +00:00
|
|
|
<?php
|
|
|
|
|
2006-07-22 19:01:59 +00:00
|
|
|
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';
|
2006-07-21 23:27:00 +00:00
|
|
|
|
|
|
|
// emulates inserting a dir called HTMLPurifier into your class dir
|
2006-07-22 15:38:41 +00:00
|
|
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../library');
|
2006-07-21 23:27:00 +00:00
|
|
|
|
|
|
|
$test = new GroupTest('HTMLPurifier');
|
|
|
|
|
2006-07-22 15:38:41 +00:00
|
|
|
$test->addTestFile('HTMLPurifier/LexerTest.php');
|
2006-07-23 00:03:11 +00:00
|
|
|
$test->addTestFile('HTMLPurifier/Lexer/DirectLexTest.php');
|
2006-07-22 15:38:41 +00:00
|
|
|
//$test->addTestFile('TokenTest.php');
|
|
|
|
$test->addTestFile('HTMLPurifier/DefinitionTest.php');
|
|
|
|
$test->addTestFile('HTMLPurifier/ChildDefTest.php');
|
|
|
|
$test->addTestFile('HTMLPurifier/GeneratorTest.php');
|
2006-07-21 23:27:00 +00:00
|
|
|
|
|
|
|
$test->run( new HtmlReporter() );
|
|
|
|
|
|
|
|
?>
|