Using the names of currently existing Wikimedia projects and grammar cases already used in localisation messages. Change-Id: I0ddd0c609a2c21dcb541718a5381d23c2c4e4213
23 lines
473 B
PHP
23 lines
473 B
PHP
<?php
|
|
|
|
/**
|
|
* @group Language
|
|
*/
|
|
class LanguageTyvTest extends LanguageClassesTestCase {
|
|
|
|
/**
|
|
* @dataProvider provideGrammar
|
|
* @covers Language::convertGrammar
|
|
*/
|
|
public function testGrammar( $result, $word, $case ) {
|
|
$this->assertEquals( $result, $this->getLang()->convertGrammar( $word, $case ) );
|
|
}
|
|
|
|
public static function provideGrammar() {
|
|
yield 'Wikipedia genitive' => [
|
|
'Википедияның',
|
|
'Википедия',
|
|
'genitive',
|
|
];
|
|
}
|
|
}
|