/** * Ensures that setCharSet() follows expected behavior * * @return void */ public function testSetCharSet() { $this->_filter->setCharSet('UTF-8'); $this->assertEquals('UTF-8', $this->_filter->getCharSet()); }
/** * 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); }
/** * 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); }