* @category Horde * @copyright 2010-2016 Horde LLC * @ignore * @license http://www.horde.org/licenses/gpl GPL * @package IMP * @subpackage UnitTests */ class Imp_Stub_Mime_Viewer_Html extends IMP_Mime_Viewer_Html { public function runTest($html) { $this->_imptmp = array( 'blockimg' => 'imgblock.png', 'img' => true, 'imgblock' => false, 'inline' => true, 'target' => '_blank' ); $this->_tmp = array( 'base' => null, 'inline' => true, 'phish' => true ); $dom = new Horde_Domhtml($html); foreach ($dom as $node) { $this->_node($dom->dom, $node); } return $dom->dom->saveXML($dom->dom->getElementsByTagName('body')->item(0)->firstChild); } }