Merge "Update docs/hooks.txt for ShowSearchHitTitle"
[mediawiki.git] / tests / phpunit / languages / classes / LanguageGanTest.php
blob43eb93e35b04d7a2666c6ba15c60fc649fc6120e
1 <?php
3 class LanguageGanTest extends LanguageClassesTestCase {
4 /**
5 * @dataProvider provideAutoConvertToAllVariants
6 * @covers Language::autoConvertToAllVariants
7 */
8 public function testAutoConvertToAllVariants( $result, $value ) {
9 $this->assertEquals( $result, $this->getLang()->autoConvertToAllVariants( $value ) );
12 public static function provideAutoConvertToAllVariants() {
13 return [
14 // zh2Hans
17 'gan' => '㑯',
18 'gan-hans' => '㑔',
19 'gan-hant' => '㑯',
21 '㑯'
23 // zh2Hant
26 'gan' => '㐷',
27 'gan-hans' => '㐷',
28 'gan-hant' => '傌',
30 '㐷'