X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fparser%2FMagicVariableTest.php;h=6a2afad6d7fc66a29511130f03021402d681bbdc;hb=237d3271fd313ebe09858a5c442a91216a7b61cf;hp=8997846597a14afcdfbf3b779810ea90d2e59a39;hpb=4a883e2ec8dec91254b3232af298014121642d19;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/parser/MagicVariableTest.php b/tests/phpunit/includes/parser/MagicVariableTest.php index 8997846597..6a2afad6d7 100644 --- a/tests/phpunit/includes/parser/MagicVariableTest.php +++ b/tests/phpunit/includes/parser/MagicVariableTest.php @@ -27,20 +27,20 @@ class MagicVariableTest extends MediaWikiTestCase { * them as integer. * @see MagicVariableTest::assertMagic() */ - private $expectedAsInteger = array( + private $expectedAsInteger = [ 'revisionday', 'revisionmonth1', - ); + ]; /** setup a basic parser object */ protected function setUp() { parent::setUp(); $contLang = Language::factory( 'en' ); - $this->setMwGlobals( array( + $this->setMwGlobals( [ 'wgLanguageCode' => 'en', 'wgContLang' => $contLang, - ) ); + ] ); $this->testParser = new Parser(); $this->testParser->Options( ParserOptions::newFromUserAndLang( new User, $contLang ) ); @@ -62,9 +62,9 @@ class MagicVariableTest extends MediaWikiTestCase { * @return array Array of numbers from 1 up to $num */ private static function createProviderUpTo( $num ) { - $ret = array(); + $ret = []; for ( $i = 1; $i <= $num; $i++ ) { - $ret[] = array( $i ); + $ret[] = [ $i ]; } return $ret;