dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert all array() syntax to []
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
title
/
NaiveImportTitleFactoryTest.php
diff --git
a/tests/phpunit/includes/title/NaiveImportTitleFactoryTest.php
b/tests/phpunit/includes/title/NaiveImportTitleFactoryTest.php
index
98b414e
..
067d159
100644
(file)
--- a/
tests/phpunit/includes/title/NaiveImportTitleFactoryTest.php
+++ b/
tests/phpunit/includes/title/NaiveImportTitleFactoryTest.php
@@
-29,52
+29,52
@@
class NaiveImportTitleFactoryTest extends MediaWikiTestCase {
protected function setUp() {
parent::setUp();
protected function setUp() {
parent::setUp();
- $this->setMwGlobals(
array(
+ $this->setMwGlobals(
[
'wgLanguageCode' => 'en',
'wgContLang' => Language::factory( 'en' ),
'wgLanguageCode' => 'en',
'wgContLang' => Language::factory( 'en' ),
- 'wgExtraNamespaces' =>
array( 100 => 'Portal' )
,
-
)
);
+ 'wgExtraNamespaces' =>
[ 100 => 'Portal' ]
,
+
]
);
}
public function basicProvider() {
}
public function basicProvider() {
- return
array(
- array(
+ return
[
+ [
new ForeignTitle( 0, '', 'MainNamespaceArticle' ),
Title::newFromText( 'MainNamespaceArticle' )
new ForeignTitle( 0, '', 'MainNamespaceArticle' ),
Title::newFromText( 'MainNamespaceArticle' )
-
)
,
- array(
+
]
,
+ [
new ForeignTitle( null, '', 'MainNamespaceArticle' ),
Title::newFromText( 'MainNamespaceArticle' )
new ForeignTitle( null, '', 'MainNamespaceArticle' ),
Title::newFromText( 'MainNamespaceArticle' )
-
)
,
- array(
+
]
,
+ [
new ForeignTitle( 1, 'Discussion', 'Nice_talk' ),
Title::newFromText( 'Talk:Nice_talk' )
new ForeignTitle( 1, 'Discussion', 'Nice_talk' ),
Title::newFromText( 'Talk:Nice_talk' )
-
)
,
- array(
+
]
,
+ [
new ForeignTitle( 0, '', 'Bogus:Nice_talk' ),
Title::newFromText( 'Bogus:Nice_talk' )
new ForeignTitle( 0, '', 'Bogus:Nice_talk' ),
Title::newFromText( 'Bogus:Nice_talk' )
-
)
,
- array(
+
]
,
+ [
new ForeignTitle( 100, 'Bogus', 'Nice_talk' ),
Title::newFromText( 'Bogus:Nice_talk' ) // not Portal:Nice_talk
new ForeignTitle( 100, 'Bogus', 'Nice_talk' ),
Title::newFromText( 'Bogus:Nice_talk' ) // not Portal:Nice_talk
-
)
,
- array(
+
]
,
+ [
new ForeignTitle( 1, 'Bogus', 'Nice_talk' ),
Title::newFromText( 'Talk:Nice_talk' ) // not Bogus:Nice_talk
new ForeignTitle( 1, 'Bogus', 'Nice_talk' ),
Title::newFromText( 'Talk:Nice_talk' ) // not Bogus:Nice_talk
-
)
,
- array(
+
]
,
+ [
new ForeignTitle( 100, 'Portal', 'Nice_talk' ),
Title::newFromText( 'Portal:Nice_talk' )
new ForeignTitle( 100, 'Portal', 'Nice_talk' ),
Title::newFromText( 'Portal:Nice_talk' )
-
)
,
- array(
+
]
,
+ [
new ForeignTitle( 724, 'Portal', 'Nice_talk' ),
Title::newFromText( 'Portal:Nice_talk' )
new ForeignTitle( 724, 'Portal', 'Nice_talk' ),
Title::newFromText( 'Portal:Nice_talk' )
-
)
,
- array(
+
]
,
+ [
new ForeignTitle( 2, 'Portal', 'Nice_talk' ),
Title::newFromText( 'User:Nice_talk' )
new ForeignTitle( 2, 'Portal', 'Nice_talk' ),
Title::newFromText( 'User:Nice_talk' )
-
)
,
-
)
;
+
]
,
+
]
;
}
/**
}
/**