コード例 #1
0
ファイル: HeadScriptTest.php プロジェクト: pnaq57/zf2demo
 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);
 }
コード例 #2
0
ファイル: HeadScript.php プロジェクト: Ellipizle/dotscms
 public function __invoke($mode = HeadScript::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
 {
     return parent::__invoke($mode, $spec, $placement, $attrs, $type);
 }