/** * Retourne le tag fermant, et positionne le flag interne pour dire qu'on n'est plus à l'intérieur d'un bloc stylisé. * @return string Le tag fermant. */ public function close() { $this->isOpen = false; // remise à zéro $this->_recursionDepth = 0; $subContent = $this->_currentContent; $this->_currentContent = ''; //traitement récursif $cfg = $this->engine->getConfig()->subConstruct(); $engine = new Renderer($cfg); $html = sprintf($this->_openTag, $this->_cssClasses) . "\n" . $engine->render($subContent) . $this->_closeTag; return $html; }
public function testGetRenderedLine_img2() { $res = $this->object->render('<p align="center">[http://blazemeter.com/?utm_source=jmplinnerpages&utm_medium=cpc&utm_content=jmpininnerpgs&utm_campaign=JMeter%2BPlug%2BIn%2BWiki http://apc.kg/img/jpgc/bz_small.jpg]</p>'); $this->assertEquals('<p><p align="center"><a href="http://blazemeter.com/?utm_source=jmplinnerpages&utm_medium=cpc&utm_content=jmpininnerpgs&utm_campaign=JMeter%2BPlug%2BIn%2BWiki" target="_blank" rel="nofollow"><img src="http://apc.kg/img/jpgc/bz_small.jpg" alt=""/></a></p></p>', $res); }
public function testGetRenderedLine_anchored() { $res = $this->object->render("<download:test.txt;some descr>"); //$this->assertEquals('', $res); }
public function testGetRenderedLine_anchored() { $res = $this->object->render('<i><font color=gray size="1">Nov 4, 2010</font></i>'); $this->assertEquals('<p><i><font color=gray size="1">Nov 4, 2010</font></i></p>', $res); }