mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-14 01:08:41 +00:00
Move tester, complete HTML_Purifier -> HTMLPurifier move.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@68 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
1836b73c63
commit
436873e227
25
tester.php
25
tester.php
@ -1,25 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
load_simpletest(); // includes all relevant simpletest files
|
|
||||||
|
|
||||||
require_once 'XML/HTMLSax3.php'; // optional PEAR class
|
|
||||||
|
|
||||||
require_once 'HTMLPurifier.php';
|
|
||||||
require_once 'Lexer.php';
|
|
||||||
require_once 'Token.php';
|
|
||||||
require_once 'PureHTMLDefinition.php';
|
|
||||||
require_once 'Generator.php';
|
|
||||||
|
|
||||||
$test = new GroupTest('HTML_Purifier');
|
|
||||||
|
|
||||||
chdir('tests/');
|
|
||||||
$test->addTestFile('HTMLPurifier.php');
|
|
||||||
$test->addTestFile('Lexer.php');
|
|
||||||
//$test->addTestFile('Token.php');
|
|
||||||
$test->addTestFile('PureHTMLDefinition.php');
|
|
||||||
$test->addTestFile('Generator.php');
|
|
||||||
chdir('../');
|
|
||||||
|
|
||||||
$test->run( new HtmlReporter() );
|
|
||||||
|
|
||||||
?>
|
|
27
tests/index.php
Normal file
27
tests/index.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
load_simpletest(); // includes all relevant simpletest files
|
||||||
|
|
||||||
|
// emulates inserting a dir called HTMLPurifier into your class dir
|
||||||
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../../');
|
||||||
|
|
||||||
|
require_once 'XML/HTMLSax3.php'; // optional PEAR class
|
||||||
|
|
||||||
|
// enforce proper namespacing
|
||||||
|
require_once 'HTMLPurifier/HTMLPurifier.php';
|
||||||
|
require_once 'HTMLPurifier/Lexer.php';
|
||||||
|
require_once 'HTMLPurifier/Token.php';
|
||||||
|
require_once 'HTMLPurifier/PureHTMLDefinition.php';
|
||||||
|
require_once 'HTMLPurifier/Generator.php';
|
||||||
|
|
||||||
|
$test = new GroupTest('HTMLPurifier');
|
||||||
|
|
||||||
|
$test->addTestFile('HTMLPurifier.php');
|
||||||
|
$test->addTestFile('Lexer.php');
|
||||||
|
//$test->addTestFile('Token.php');
|
||||||
|
$test->addTestFile('PureHTMLDefinition.php');
|
||||||
|
$test->addTestFile('Generator.php');
|
||||||
|
|
||||||
|
$test->run( new HtmlReporter() );
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user