* http://www.gnu.org/copyleft/gpl.html
*
* @file
- * @license GPL 2+
* @author This, that and the other
*/
protected function setUp() {
parent::setUp();
- $this->setMwGlobals( array(
+ $this->setMwGlobals( [
'wgLanguageCode' => 'en',
'wgContLang' => Language::factory( 'en' ),
- ) );
+ ] );
}
public function basicProvider() {
- return array(
- array(
+ return [
+ [
new ForeignTitle( 0, '', 'MainNamespaceArticle' ),
0,
Title::newFromText( 'MainNamespaceArticle' )
- ),
- array(
+ ],
+ [
new ForeignTitle( 0, '', 'MainNamespaceArticle' ),
2,
Title::newFromText( 'User:MainNamespaceArticle' )
- ),
- array(
+ ],
+ [
new ForeignTitle( 1, 'Discussion', 'Nice_talk' ),
0,
Title::newFromText( 'Nice_talk' )
- ),
- array(
+ ],
+ [
new ForeignTitle( 0, '', 'Bogus:Nice_talk' ),
0,
Title::newFromText( 'Bogus:Nice_talk' )
- ),
- array(
+ ],
+ [
new ForeignTitle( 0, '', 'Bogus:Nice_talk' ),
2,
Title::newFromText( 'User:Bogus:Nice_talk' )
- ),
- );
+ ],
+ ];
}
/**