MediaWiki
REL1_32
LanguageGanTest.php
Go to the documentation of this file.
1
<?php
2
7
class
LanguageGanTest
extends
LanguageClassesTestCase
{
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
}
LanguageClassesTestCase
Helping class to run tests using a clean language instance.
Definition
LanguageClassesTestCase.php:21
LanguageClassesTestCase\getLang
getLang()
Definition
LanguageClassesTestCase.php:41
LanguageGanTest
LanguageGan GanConverter.
Definition
LanguageGanTest.php:7
LanguageGanTest\testAutoConvertToAllVariants
testAutoConvertToAllVariants( $result, $value)
provideAutoConvertToAllVariants Language::autoConvertToAllVariants
Definition
LanguageGanTest.php:12
LanguageGanTest\provideAutoConvertToAllVariants
static provideAutoConvertToAllVariants()
Definition
LanguageGanTest.php:16
$value
$value
Definition
styleTest.css.php:49
tests
phpunit
languages
classes
LanguageGanTest.php
Generated on Mon Nov 25 2024 15:59:00 for MediaWiki by
1.10.0