Using the names of currently existing Wikimedia projects and grammar cases already used in localisation messages. Change-Id: I0ddd0c609a2c21dcb541718a5381d23c2c4e4213
33 lines
697 B
PHP
33 lines
697 B
PHP
<?php
|
|
|
|
/**
|
|
* @group Language
|
|
*/
|
|
class LanguageKkTest 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 ablative' => [
|
|
'Уикипедияден',
|
|
'Уикипедия',
|
|
'ablative',
|
|
];
|
|
yield 'Wiktionary ablative' => [
|
|
'Уикисөздіктен',
|
|
'Уикисөздік',
|
|
'ablative',
|
|
];
|
|
yield 'Wikibooks ablative' => [
|
|
'Уикикітаптан',
|
|
'Уикикітап',
|
|
'ablative',
|
|
];
|
|
}
|
|
}
|