コード例 #1
0
 /**
  * Ensures that setCharSet() follows expected behavior
  *
  * @return void
  */
 public function testSetCharSet()
 {
     $this->_filter->setCharSet('UTF-8');
     $this->assertEquals('UTF-8', $this->_filter->getCharSet());
 }
コード例 #2
0
ファイル: HtmlEntitiesTest.php プロジェクト: rexmac/zf2
 /**
  * Ensure that fluent interfaces are supported
  *
  * @group ZF-3172
  */
 public function testFluentInterface()
 {
     $instance = $this->_filter->setCharSet('UTF-8')->setQuoteStyle(ENT_QUOTES)->setDoubleQuote(false);
     $this->assertTrue($instance instanceof HtmlEntitiesFilter);
 }
コード例 #3
0
ファイル: HtmlEntitiesTest.php プロジェクト: lortnus/zf1
 /**
  * Ensure that fluent interfaces are supported
  *
  * @group ZF-3172
  */
 public function testFluentInterface()
 {
     $instance = $this->_filter->setCharSet('UTF-8')->setQuoteStyle(ENT_QUOTES);
     $this->assertTrue($instance instanceof Zend_Filter_HtmlEntities);
 }