blob: a2e2933ca501852cc225b56345b2d202f0a0c2a0 (
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
|
<?php
/**
* @author Amir E. Aharoni
* @copyright Copyright © 2012, Amir E. Aharoni
* @file
*/
/**
* @group Language
*/
class LanguageMnTest extends LanguageClassesTestCase {
/**
* @dataProvider providerGrammar
* @covers \MediaWiki\Language\Language::convertGrammar
*/
public function testGrammar( $result, $word, $case ) {
$this->assertEquals( $result, $this->getLang()->convertGrammar( $word, $case ) );
}
public static function providerGrammar() {
yield 'Wikipedia genitive' => [
'Википедиагийн',
'Википедиа',
'genitive',
];
yield 'Wiktionary genitive' => [
'Викитолийн',
'Викитоль',
'genitive',
];
}
}
|