Exemple #1
0
 public function testNoEscapeTrue()
 {
     $this->helper->__invoke()->appendScript('// some script' . PHP_EOL, 'text/javascript', array('noescape' => true));
     $test = $this->helper->__invoke()->toString();
     $this->assertNotContains('//<!--', $test);
     $this->assertNotContains('//-->', $test);
 }
Exemple #2
0
 public function __invoke($mode = HeadScript::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
 {
     return parent::__invoke($mode, $spec, $placement, $attrs, $type);
 }