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); }
public function testConditionalScriptWidthIndentation() { $this->helper->__invoke()->appendFile('/js/foo.js', 'text/javascript', array('conditional' => 'lt IE 7')); $this->helper->__invoke()->setIndent(4); $test = $this->helper->__invoke()->toString(); $this->assertContains(' <!--[if lt IE 7]>', $test); }