wiki.techinc.nl/tests/phpunit/includes/languages/LanguageKkTest.php
Reedy 85396a9c99 tests: Fix @covers and @coversDefaultClass to have leading \
Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03
2024-02-16 22:43:56 +00:00

33 lines
698 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',
];
}
}