'zh-chs' => 'zh-hans',
];
} /**
* Tests matching language from user agent.
*
* @dataProvider providerTestGetBestMatchingLangcode
* @covers ::getBestMatchingLangcode
*/
public function testGetBestMatchingLangcode($accept_language,
$expected) { $result = UserAgent::
getBestMatchingLangcode($accept_language,
$this->
getLanguages(),
$this->
getMappings());
$this->
assertSame($expected,
$result);
} /**
* Data provider for testGetBestMatchingLangcode().
*
* @return array
* - An accept-language string.
* - Expected best matching language code.
*/
public function providerTestGetBestMatchingLangcode() {