| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
class IuConverterTest extends MediaWikiIntegrationTestCase { |
| 8 |
|
| 9 |
use LanguageConverterTestTrait; |
| 10 |
|
| 11 |
|
| 12 |
|
| 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 |
|
| 21 |
[ |
| 22 |
[ |
| 23 |
'ike-cans' => 'ᐴ', |
| 24 |
'ike-latn' => 'PUU', |
| 25 |
'iu' => 'PUU', |
| 26 |
], |
| 27 |
'PUU' |
| 28 |
], |
| 29 |
|
| 30 |
[ |
| 31 |
[ |
| 32 |
'ike-cans' => 'ᐴ', |
| 33 |
'ike-latn' => 'puu', |
| 34 |
'iu' => 'ᐴ', |
| 35 |
], |
| 36 |
'ᐴ' |
| 37 |
], |
| 38 |
]; |
| 39 |
} |
| 40 |
} |