/**
* @dataProvider provideLanguagesWithoutAlpha2Equivalent
*/
public function testGetAlpha2CodeFailsIfNoAlpha2Equivalent($language) { $this->
expectException(MissingResourceException::
class);
Languages::
getAlpha2Code($language);
} public function testAlpha3CodeExists() { $this->
assertTrue(Languages::
alpha3CodeExists('nob'
));
$this->
assertTrue(Languages::
alpha3CodeExists('nld'
));
$this->
assertTrue(Languages::
alpha3CodeExists('ace'
));
$this->
assertTrue(Languages::
alpha3CodeExists('nor'
));
$this->
assertTrue(Languages::
alpha3CodeExists('twi'
));
$this->
assertTrue(Languages::
alpha3CodeExists('tgl'
));
$this->
assertFalse(Languages::
alpha3CodeExists('en'
));
$this->
assertFalse(Languages::
alpha3CodeExists('foo'
));
$this->
assertFalse(Languages::
alpha3CodeExists('zzz'
));
} /**
* @dataProvider provideLocales
*/