MediaWiki REL1_31
LanguageGanTest.php
Go to the documentation of this file.
1<?php
2
12 public function testAutoConvertToAllVariants( $result, $value ) {
13 $this->assertEquals( $result, $this->getLang()->autoConvertToAllVariants( $value ) );
14 }
15
16 public static function provideAutoConvertToAllVariants() {
17 return [
18 // zh2Hans
19 [
20 [
21 'gan' => '㑯',
22 'gan-hans' => '㑔',
23 'gan-hant' => '㑯',
24 ],
25 '㑯'
26 ],
27 // zh2Hant
28 [
29 [
30 'gan' => '㐷',
31 'gan-hans' => '㐷',
32 'gan-hant' => '傌',
33 ],
34 '㐷'
35 ],
36 ];
37 }
38}
Helping class to run tests using a clean language instance.
LanguageGan GanConverter.
testAutoConvertToAllVariants( $result, $value)
provideAutoConvertToAllVariants Language::autoConvertToAllVariants
static provideAutoConvertToAllVariants()