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