Debian Codegraph @

tests/phpunit/includes/language/converters/IuConverterTest.php

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