PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / tests / HTMLPurifier / Strategy / ErrorsHarness.php
blob3efc836f988fda62630815f02c87eba971d0a573
1 <?php
3 class HTMLPurifier_Strategy_ErrorsHarness extends HTMLPurifier_ErrorsHarness
6 // needs to be defined
7 protected function getStrategy() {}
9 protected function invoke($input)
11 $strategy = $this->getStrategy();
12 $lexer = new HTMLPurifier_Lexer_DirectLex();
13 $tokens = $lexer->tokenizeHTML($input, $this->config, $this->context);
14 $strategy->execute($tokens, $this->config, $this->context);
19 // vim: et sw=4 sts=4