X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FSampleTest.php;h=7c313845f9608c8e0c4068fc1539758e981dc6d2;hb=9ba3fca2d8adc56787c8efc32c41424cb212e387;hp=4b06e83917308231e284b027587fa5ce091a5b4e;hpb=e36e7e352fa0345d8f4ac3bb0a1446c49a7b5dd2;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/SampleTest.php b/tests/phpunit/includes/SampleTest.php index 4b06e83917..7c313845f9 100644 --- a/tests/phpunit/includes/SampleTest.php +++ b/tests/phpunit/includes/SampleTest.php @@ -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