X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Flanguages%2Fclasses%2FLanguageHyTest.php;h=b493615453a2b89f444cd12ce49958d1c974da95;hb=95cf21f8ee45faaa6c933b42bebae687a28849c4;hp=92e0ef943b73f22c01ddef97f6a1da783da5f32f;hpb=96366c1cf1966ca07e8f0b4361bbca28bfaf43a0;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/languages/classes/LanguageHyTest.php b/tests/phpunit/languages/classes/LanguageHyTest.php index 92e0ef943b..b493615453 100644 --- a/tests/phpunit/languages/classes/LanguageHyTest.php +++ b/tests/phpunit/languages/classes/LanguageHyTest.php @@ -5,14 +5,18 @@ * @file */ -/** Tests for Armenian (Հայերեն) */ +/** + * Tests for Armenian (Հայերեն) + * + * @covers LanguageHy + */ class LanguageHyTest extends LanguageClassesTestCase { /** * @dataProvider providePlural * @covers Language::convertPlural */ public function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = [ 'one', 'other' ]; $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } @@ -25,11 +29,11 @@ class LanguageHyTest extends LanguageClassesTestCase { } public static function providePlural() { - return array( - array( 'one', 0 ), - array( 'one', 1 ), - array( 'other', 2 ), - array( 'other', 200 ), - ); + return [ + [ 'one', 0 ], + [ 'one', 1 ], + [ 'other', 2 ], + [ 'other', 200 ], + ]; } }