[Locale] Fixed: StubLocale::setDefault() throws no exception when "en" is passed
This commit is contained in:
parent
b2cbc67289
commit
d0faf5531d
|
@ -466,7 +466,9 @@ class StubLocale
|
|||
*/
|
||||
public static function setDefault($locale)
|
||||
{
|
||||
throw new MethodNotImplementedException(__METHOD__);
|
||||
if ('en' !== $locale) {
|
||||
throw new MethodNotImplementedException(__METHOD__);
|
||||
}
|
||||
}
|
||||
|
||||
public static function getDataDirectory()
|
||||
|
|
|
@ -252,4 +252,9 @@ class StubLocaleTest extends LocaleTestCase
|
|||
{
|
||||
StubLocale::setDefault('pt_BR');
|
||||
}
|
||||
|
||||
public function testSetDefaultAcceptsEn()
|
||||
{
|
||||
StubLocale::setDefault('en');
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue