X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fphpunit%2Flanguages%2FLanguageHyTest.php;h=f520b7e76496a65bceab365f4dec5219e797cf2e;hb=b36d883017982f9642fea4513cc7273561fba38c;hp=ea6e25564241b64c36f97e987d7c2532aa5b28fe;hpb=a03bf9e27fe4ce19eab90c637f50124f737ad754;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/languages/LanguageHyTest.php b/tests/phpunit/languages/LanguageHyTest.php index ea6e255642..f520b7e764 100644 --- a/tests/phpunit/languages/LanguageHyTest.php +++ b/tests/phpunit/languages/LanguageHyTest.php @@ -7,20 +7,24 @@ /** Tests for MediaWiki languages/LanguageHy.php */ class LanguageHyTest extends LanguageClassesTestCase { - - /** @dataProvider providerPlural */ + /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } - function providerPlural() { + /** @dataProvider providePlural */ + function testGetPluralRuleType( $result, $value ) { + // This fails for 0, but I'm not sure why. Some voodoo going on here. + $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) ); + } + + public static function providePlural() { return array ( - array( 'one', 0 ), + array( 'other', 0 ), array( 'one', 1 ), array( 'other', 2 ), array( 'other', 200 ), ); } - }