I removed comments that merely repeated the location of the class being tested. There are other tests in this directory that don't have a corresponding class and need further investigation. Change-Id: Ic16f0887b5030ac53fab4382cfaedfb5426cdb08
38 lines
704 B
PHP
38 lines
704 B
PHP
<?php
|
|
|
|
/**
|
|
* @covers LanguageIu
|
|
* @covers IuConverter
|
|
*/
|
|
class LanguageIuTest extends LanguageClassesTestCase {
|
|
/**
|
|
* @dataProvider provideAutoConvertToAllVariants
|
|
* @covers Language::autoConvertToAllVariants
|
|
*/
|
|
public function testAutoConvertToAllVariants( $result, $value ) {
|
|
$this->assertEquals( $result, $this->getLang()->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' => 'ᐴ',
|
|
],
|
|
'ᐴ'
|
|
],
|
|
];
|
|
}
|
|
}
|