MediaWiki
REL1_30
LanguageGanTest.php
Go to the documentation of this file.
1
<?php
2
3
class
LanguageGanTest
extends
LanguageClassesTestCase
{
8
public
function
testAutoConvertToAllVariants
( $result,
$value
) {
9
$this->assertEquals( $result, $this->
getLang
()->autoConvertToAllVariants(
$value
) );
10
}
11
12
public
static
function
provideAutoConvertToAllVariants
() {
13
return
[
14
// zh2Hans
15
[
16
[
17
'gan'
=>
'㑯'
,
18
'gan-hans'
=>
'㑔'
,
19
'gan-hant'
=>
'㑯'
,
20
],
21
'㑯'
22
],
23
// zh2Hant
24
[
25
[
26
'gan'
=>
'㐷'
,
27
'gan-hans'
=>
'㐷'
,
28
'gan-hant'
=>
'傌'
,
29
],
30
'㐷'
31
],
32
];
33
}
34
}
LanguageClassesTestCase
Helping class to run tests using a clean language instance.
Definition
LanguageClassesTestCase.php:21
LanguageClassesTestCase\getLang
getLang()
Definition
LanguageClassesTestCase.php:41
LanguageGanTest
Definition
LanguageGanTest.php:3
LanguageGanTest\testAutoConvertToAllVariants
testAutoConvertToAllVariants( $result, $value)
provideAutoConvertToAllVariants Language::autoConvertToAllVariants
Definition
LanguageGanTest.php:8
LanguageGanTest\provideAutoConvertToAllVariants
static provideAutoConvertToAllVariants()
Definition
LanguageGanTest.php:12
$value
$value
Definition
styleTest.css.php:45
tests
phpunit
languages
classes
LanguageGanTest.php
Generated on Mon Nov 25 2024 15:44:03 for MediaWiki by
1.10.0