Debian Codegraph @

tests/phpunit/includes/languages/LanguageMnTest.php

raw symbols SCIP
1 <?php
2 /**
3 * @author Amir E. Aharoni
4 * @copyright Copyright © 2012, Amir E. Aharoni
5 * @file
6 */
7
8 /**
9 * @group Language
10 */
11 class LanguageMnTest extends LanguageClassesTestCase {
12 /**
13 * @dataProvider providerGrammar
14 * @covers \MediaWiki\Language\Language::convertGrammar
15 */
16 public function testGrammar( $result, $word, $case ) {
17 $this->assertEquals( $result, $this->getLang()->convertGrammar( $word, $case ) );
18 }
19
20 public static function providerGrammar() {
21 yield 'Wikipedia genitive' => [
22 'Википедиагийн',
23 'Википедиа',
24 'genitive',
25 ];
26 yield 'Wiktionary genitive' => [
27 'Викитолийн',
28 'Викитоль',
29 'genitive',
30 ];
31 }
32 }