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