blob: a009c1a4203b85a4ca019dda96e05998f46f8874 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php
/**
* @group Language
* @covers \IuConverter
*/
class IuConverterTest extends MediaWikiIntegrationTestCase {
use LanguageConverterTestTrait;
/**
* @dataProvider provideAutoConvertToAllVariants
*/
public function testAutoConvertToAllVariants( $result, $value ) {
$this->assertEquals( $result, $this->getLanguageConverter()->autoConvertToAllVariants( $value ) );
}
public static function provideAutoConvertToAllVariants() {
return [
// ike-cans
[
[
'ike-cans' => 'ᐴ',
'ike-latn' => 'PUU',
'iu' => 'PUU',
],
'PUU'
],
// ike-latn
[
[
'ike-cans' => 'ᐴ',
'ike-latn' => 'puu',
'iu' => 'ᐴ',
],
'ᐴ'
],
];
}
}
|