/** * @expectedException \horses\i18n\UnknownLocaleException */ public function testTranslateUnknownLocale() { $this->localizer->expects($this->any())->method('getCurrentLocale')->will($this->returnValue('FOO')); $this->translator->translate('key1'); }