tokenizeHTML ( $input, $this->config, $this->context ); } public function invokeAttr($input) { $lexer = new HTMLPurifier_Lexer_DirectLex (); $lexer->parseAttributeString ( $input, $this->config, $this->context ); } public function testExtractBody() { $this->expectErrorCollection ( E_WARNING, 'Lexer: Extracted body' ); $this->invoke ( 'foo' ); } public function testUnclosedComment() { $this->expectErrorCollection ( E_WARNING, 'Lexer: Unclosed comment' ); $this->expectContext ( 'CurrentLine', 1 ); $this->invoke ( '