protected function setUp() {
parent::setUp();
- $this->setMwGlobals( array(
+ $this->setMwGlobals( [
'wgScript' => '/index.php',
'wgContLang' => Language::factory( 'en' )
- ) );
+ ] );
}
/**
}
public function getTitleForProvider() {
- return array(
- array( 'UserLogin', 'Userlogin' )
- );
+ return [
+ [ 'UserLogin', 'Userlogin' ]
+ ];
}
/**
}
public function getTitleForWithWarningProvider() {
- return array(
- array( Title::makeTitle( NS_SPECIAL, 'UserLogin' ), 'UserLogin' )
- );
+ return [
+ [ Title::makeTitle( NS_SPECIAL, 'UserLogin' ), 'UserLogin' ]
+ ];
}
/**
// $specialPage->requireLogin( [ $reason [, $title ] ] )
call_user_func_array(
- array( $specialPage, 'requireLogin' ),
- array_filter( array( $reason, $title ) )
+ [ $specialPage, 'requireLogin' ],
+ array_filter( [ $reason, $title ] )
);
}
$expected1 = wfMessage( 'exception-nologin-text' )->inLanguage( $lang )->text();
$expected2 = wfMessage( 'about' )->inLanguage( $lang )->text();
- return array(
- array( $expected1, null, null ),
- array( $expected2, 'about', null ),
- array( $expected2, 'about', 'about' ),
- );
+ return [
+ [ $expected1, null, null ],
+ [ $expected2, 'about', null ],
+ [ $expected2, 'about', 'about' ],
+ ];
}
public function testRequireLoginNotAnon() {