Exemple #1
0
 public function testBlocksFiltersArrayArray()
 {
     ob_start();
     $this->object->blockStart('test', null, 1, array(array('htmlspecialchars', array(ENT_QUOTES, 'UTF-8'))));
     echo "<a href='test'>Test</a>";
     $this->object->blockEnd();
     ob_end_clean();
     //Example from the manual: http://www.php.net/manual/en/function.htmlspecialchars.php
     $this->assertEquals('&lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;', $this->object->block('test'));
 }