X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Flanguages%2Fclasses%2FLanguageSeTest.php;h=b0da39835294561a2af77ae7b084772ac4d47994;hb=6e9b4f0e9ce4ccd6089c18b205065ef7fa077484;hp=533aa2bc3cc124fe7c3a582dc574d0c3d5e156eb;hpb=b7ec2c9b3353b99fe30e1e202c8625cac2f541f3;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/languages/classes/LanguageSeTest.php b/tests/phpunit/languages/classes/LanguageSeTest.php index 533aa2bc3c..b0da398352 100644 --- a/tests/phpunit/languages/classes/LanguageSeTest.php +++ b/tests/phpunit/languages/classes/LanguageSeTest.php @@ -12,7 +12,7 @@ class LanguageSeTest extends LanguageClassesTestCase { * @covers Language::convertPlural */ public function testPlural( $result, $value ) { - $forms = array( 'one', 'two', 'other' ); + $forms = [ 'one', 'two', 'other' ]; $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } @@ -25,12 +25,12 @@ class LanguageSeTest extends LanguageClassesTestCase { } public static function providePlural() { - return array( - array( 'other', 0 ), - array( 'one', 1 ), - array( 'two', 2 ), - array( 'other', 3 ), - ); + return [ + [ 'other', 0 ], + [ 'one', 1 ], + [ 'two', 2 ], + [ 'other', 3 ], + ]; } /** @@ -38,16 +38,16 @@ class LanguageSeTest extends LanguageClassesTestCase { * @covers Language::convertPlural */ public function testPluralTwoForms( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = [ 'one', 'other' ]; $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } public static function providePluralTwoForms() { - return array( - array( 'other', 0 ), - array( 'one', 1 ), - array( 'other', 2 ), - array( 'other', 3 ), - ); + return [ + [ 'other', 0 ], + [ 'one', 1 ], + [ 'other', 2 ], + [ 'other', 3 ], + ]; } }