Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * 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('&lt;div id=&quot;data&quot; class=&quot;flower&quot; onclick=&quot;jQuery(\'#data .gota\').distroy();&quot;&gt;&lt;/div&gt;', $this->instance->escape($html));
 }