MediaWiki
REL1_30
LanguageIuTest.php
Go to the documentation of this file.
1
<?php
2
3
class
LanguageIuTest
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
// ike-cans
15
[
16
[
17
'ike-cans'
=>
'ᐴ'
,
18
'ike-latn'
=>
'PUU'
,
19
'iu'
=>
'PUU'
,
20
],
21
'PUU'
22
],
23
// ike-latn
24
[
25
[
26
'ike-cans'
=>
'ᐴ'
,
27
'ike-latn'
=>
'puu'
,
28
'iu'
=>
'ᐴ'
,
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
LanguageIuTest
Definition
LanguageIuTest.php:3
LanguageIuTest\provideAutoConvertToAllVariants
static provideAutoConvertToAllVariants()
Definition
LanguageIuTest.php:12
LanguageIuTest\testAutoConvertToAllVariants
testAutoConvertToAllVariants( $result, $value)
provideAutoConvertToAllVariants Language::autoConvertToAllVariants
Definition
LanguageIuTest.php:8
$value
$value
Definition
styleTest.css.php:45
tests
phpunit
languages
classes
LanguageIuTest.php
Generated on Mon Nov 25 2024 15:44:03 for MediaWiki by
1.10.0