/**
* @dataProvider provideLocales
*/
public function testGetAlpha3Name($displayLocale) { $names = Countries::
getNames($displayLocale);
foreach ($names as $alpha2 =>
$name) { $alpha3 = self::ALPHA2_TO_ALPHA3
[$alpha2];
$this->
assertSame($name, Countries::
getAlpha3Name($alpha3,
$displayLocale));
} } public function testGetAlpha3NameWithInvalidCountryCode() { $this->
expectException(MissingResourceException::
class);
Countries::
getAlpha3Name('ZZZ'
);
} /**
* @dataProvider provideLocales
*/