/** * getParent * * @return mixed|null */ public function parent() { if (!$this->extend) { return null; } if (!$this->parent) { $this->parent = new static($this->paths); $this->parent->render($this->extend, $this->data); } return $this->parent->getBlock($this->currentBlock); }
/** * Method to test escape(). * * @return void * * @covers Windwalker\Renderer\AbstractRenderer::escape */ public function testEscape() { $html = '<div id="data" class="flower" onclick="jQuery(\'#data .gota\').distroy();"></div>'; $this->assertEquals('<div id="data" class="flower" onclick="jQuery(\'#data .gota\').distroy();"></div>', $this->instance->escape($html)); }