/** * Ensures that the filter follows expected behavior * * @return void */ public function testSettingFalseType() { try { $this->_filter->setType(true); $this->fail(); } catch (Zend_Exception $e) { $this->assertContains('Unknown', $e->getMessage()); } }
/** * Ensures that the filter follows expected behavior * * @return void */ public function testSettingFalseType() { $this->setExpectedException('\\Zend\\Filter\\Exception\\InvalidArgumentException', 'Unknown'); $this->_filter->setType(true); }