Fix newline issues in tests.
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / Strategy / ErrorsHarness.php
blobb2b5d5c7dc4f105a0f4af394991331230a03b224
1 <?php
3 class HTMLPurifier_Strategy_ErrorsHarness extends HTMLPurifier_ErrorsHarness
6 // needs to be defined
7 protected function getStrategy() {}
9 protected function invoke($input) {
10 $strategy = $this->getStrategy();
11 $lexer = new HTMLPurifier_Lexer_DirectLex();
12 $tokens = $lexer->tokenizeHTML($input, $this->config, $this->context);
13 $strategy->execute($tokens, $this->config, $this->context);