X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Flanguages%2FLanguageLtTest.php;h=30642f621cdbbdd89026ffe45af7108ecc9d66f8;hb=53ebdc8a18e1252525c41a4c45df12e875ef887f;hp=eface4cbc173b53261f5ba4edafc49ac3fbbe6ae;hpb=06b0967caa524e8f50e26aa8a9c6e1650f28c1db;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/languages/LanguageLtTest.php b/tests/phpunit/languages/LanguageLtTest.php index eface4cbc1..30642f621c 100644 --- a/tests/phpunit/languages/LanguageLtTest.php +++ b/tests/phpunit/languages/LanguageLtTest.php @@ -7,19 +7,25 @@ /** Tests for MediaWiki languages/LanguageLt.php */ class LanguageLtTest extends LanguageClassesTestCase { - /** @dataProvider providePlural */ - function testPlural( $result, $value ) { - $forms = array( 'one', 'few', 'other' ); + /** + * @dataProvider providePlural + * @covers Language::convertPlural + */ + public function testPlural( $result, $value ) { + $forms = array( 'one', 'few', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } - /** @dataProvider providePlural */ - function testGetPluralRuleType( $result, $value ) { + /** + * @dataProvider providePlural + * @covers Language::getPluralRuleType + */ + public function testGetPluralRuleType( $result, $value ) { $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) ); } - function providePlural() { - return array ( + public static function providePlural() { + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'few', 2 ), @@ -34,15 +40,18 @@ class LanguageLtTest extends LanguageClassesTestCase { ); } - /** @dataProvider providePluralTwoForms */ - function testOneFewPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + /** + * @dataProvider providePluralTwoForms + * @covers Language::convertPlural + */ + public function testOneFewPlural( $result, $value ) { + $forms = array( 'one', 'other' ); // This fails for 21, but not sure why. $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } - function providePluralTwoForms() { - return array ( + public static function providePluralTwoForms() { + return array( array( 'one', 1 ), array( 'other', 2 ), array( 'other', 15 ),