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