Merge "Remove fix for a 5.3 problem"
[lhc/web/wiklou.git] / tests / phpunit / includes / SampleTest.php
index 4b06e83..7c31384 100644 (file)
@@ -13,11 +13,11 @@ class TestSample extends MediaWikiLangTestCase {
 
                // This sets the globals and will restore them automatically
                // after each test.
-               $this->setMwGlobals( array(
+               $this->setMwGlobals( [
                        'wgContLang' => Language::factory( 'en' ),
                        'wgLanguageCode' => 'en',
                        'wgCapitalLinks' => true,
-               ) );
+               ] );
        }
 
        /**
@@ -48,13 +48,13 @@ class TestSample extends MediaWikiLangTestCase {
         * see: http://www.phpunit.de/manual/3.4/en/writing-tests-for-phpunit.html
         */
        public static function provideTitles() {
-               return array(
-                       array( 'Text', NS_MEDIA, 'Media:Text' ),
-                       array( 'Text', null, 'Text' ),
-                       array( 'text', null, 'Text' ),
-                       array( 'Text', NS_USER, 'User:Text' ),
-                       array( 'Photo.jpg', NS_FILE, 'File:Photo.jpg' )
-               );
+               return [
+                       [ 'Text', NS_MEDIA, 'Media:Text' ],
+                       [ 'Text', null, 'Text' ],
+                       [ 'text', null, 'Text' ],
+                       [ 'Text', NS_USER, 'User:Text' ],
+                       [ 'Photo.jpg', NS_FILE, 'File:Photo.jpg' ]
+               ];
        }
 
        // @codingStandardsIgnoreStart Generic.Files.LineLength