コード例 #1
0
ファイル: HeadStyleTest.php プロジェクト: pnaq57/zf2demo
 /**
  * @group ZF-9532
  */
 public function testRenderConditionalCommentsShouldNotContainHtmlEscaping()
 {
     $style = 'a{display:none;}';
     $this->helper->appendStyle($style, array('conditional' => 'IE 8'));
     $value = $this->helper->toString();
     $this->assertNotContains('<!--' . PHP_EOL, $value);
     $this->assertNotContains(PHP_EOL . '-->', $value);
 }
コード例 #2
0
ファイル: JQuery.php プロジェクト: coolms/jquery
 /**
  * @return HeadStyle
  */
 public function headStyle()
 {
     $this->__initialized__ && $this->__initialized__->__invoke();
     if (null === $this->headStyle) {
         $this->headStyle = new HeadStyle();
         $this->headStyle->setView($this->view);
     }
     return $this->headStyle;
 }