public function testRetrievingLocaleWhenNoTranslationObjectSetThrowsException() { try { $this->helper->getLocale(); } catch (View\Exception $e) { $this->assertContains('must set an instance of Zend_Translator', $e->getMessage()); } }