Add @covers tags to languages tests
[lhc/web/wiklou.git] / tests / phpunit / languages / classes / LanguageIuTest.php
1 <?php
2
3 /**
4 * @covers LanguageIu
5 * @covers IuConverter
6 */
7 class LanguageIuTest extends LanguageClassesTestCase {
8 /**
9 * @dataProvider provideAutoConvertToAllVariants
10 * @covers Language::autoConvertToAllVariants
11 */
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 }