/** * @dataProvider toLanguages */ public function testToLanguage($locale, $lang) { $this->assertEquals($lang, LocaleHelper::toLanguage($locale)); }