MediaWiki REL1_31
LanguageIuTest.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 // 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}
Helping class to run tests using a clean language instance.
LanguageIu IuConverter.
static provideAutoConvertToAllVariants()
testAutoConvertToAllVariants( $result, $value)
provideAutoConvertToAllVariants Language::autoConvertToAllVariants