Merge "Load preferences js/css in mobile"
[lhc/web/wiklou.git] / tests / phpunit / languages / classes / LanguageSgsTest.php
index fa49a4d..7721433 100644 (file)
@@ -12,7 +12,7 @@ class LanguageSgsTest extends LanguageClassesTestCase {
         * @covers Language::convertPlural
         */
        public function testPluralAllForms( $result, $value ) {
-               $forms = array( 'one', 'two', 'few', 'other' );
+               $forms = [ 'one', 'two', 'few', 'other' ];
                $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
        }
 
@@ -25,21 +25,21 @@ class LanguageSgsTest extends LanguageClassesTestCase {
        }
 
        public static function providePluralAllForms() {
-               return array(
-                       array( 'few', 0 ),
-                       array( 'one', 1 ),
-                       array( 'two', 2 ),
-                       array( 'other', 3 ),
-                       array( 'few', 10 ),
-                       array( 'few', 11 ),
-                       array( 'few', 12 ),
-                       array( 'few', 19 ),
-                       array( 'other', 20 ),
-                       array( 'few', 100 ),
-                       array( 'one', 101 ),
-                       array( 'few', 111 ),
-                       array( 'few', 112 ),
-               );
+               return [
+                       [ 'few', 0 ],
+                       [ 'one', 1 ],
+                       [ 'two', 2 ],
+                       [ 'other', 3 ],
+                       [ 'few', 10 ],
+                       [ 'few', 11 ],
+                       [ 'few', 12 ],
+                       [ 'few', 19 ],
+                       [ 'other', 20 ],
+                       [ 'few', 100 ],
+                       [ 'one', 101 ],
+                       [ 'few', 111 ],
+                       [ 'few', 112 ],
+               ];
        }
 
        /**
@@ -47,25 +47,25 @@ class LanguageSgsTest 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 ),
-                       array( 'other', 10 ),
-                       array( 'other', 11 ),
-                       array( 'other', 12 ),
-                       array( 'other', 19 ),
-                       array( 'other', 20 ),
-                       array( 'other', 100 ),
-                       array( 'one', 101 ),
-                       array( 'other', 111 ),
-                       array( 'other', 112 ),
-               );
+               return [
+                       [ 'other', 0 ],
+                       [ 'one', 1 ],
+                       [ 'other', 2 ],
+                       [ 'other', 3 ],
+                       [ 'other', 10 ],
+                       [ 'other', 11 ],
+                       [ 'other', 12 ],
+                       [ 'other', 19 ],
+                       [ 'other', 20 ],
+                       [ 'other', 100 ],
+                       [ 'one', 101 ],
+                       [ 'other', 111 ],
+                       [ 'other', 112 ],
+               ];
        }
 }