diff --git a/tests/HTMLPurifier/Lexer/DirectLexTest.php b/tests/HTMLPurifier/Lexer/DirectLexTest.php index fc9c769b..786e4be6 100644 --- a/tests/HTMLPurifier/Lexer/DirectLexTest.php +++ b/tests/HTMLPurifier/Lexer/DirectLexTest.php @@ -1,25 +1,14 @@ DirectLex = new HTMLPurifier_Lexer_DirectLex(); - $this->PEARSax3 = new HTMLPurifier_Lexer_PEARSax3(); - - $this->_has_dom = version_compare(PHP_VERSION, '5', '>='); - - if ($this->_has_dom) { - require_once 'HTMLPurifier/Lexer/DOMLex.php'; - $this->DOMLex = new HTMLPurifier_Lexer_DOMLex(); - } - } function test_nextWhiteSpace() { @@ -43,176 +32,6 @@ class HTMLPurifier_LexerTest extends UnitTestCase // UTF-8 needed!!! } - function test_tokenizeHTML() { - - $input = array(); - $expect = array(); - $sax_expect = array(); - - $input[0] = ''; - $expect[0] = array(); - - $input[1] = 'This is regular text.'; - $expect[1] = array( - new HTMLPurifier_Token_Text('This is regular text.') - ); - - $input[2] = 'This is bold text'; - $expect[2] = array( - new HTMLPurifier_Token_Text('This is ') - ,new HTMLPurifier_Token_Start('b', array()) - ,new HTMLPurifier_Token_Text('bold') - ,new HTMLPurifier_Token_End('b') - ,new HTMLPurifier_Token_Text(' text') - ); - - $input[3] = '