X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Ftitle%2FNaiveForeignTitleFactoryTest.php;h=b8cc39f0543856fb7082e91e390f4159ab5277d1;hb=1d17bbe56326f4e4a26a5da59d232bbac16aed15;hp=504e87128ed6f47669ff118376c6667031e9125f;hpb=ea76d59537c580bdb2ddc8acc4c32fe38ae3f58d;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/title/NaiveForeignTitleFactoryTest.php b/tests/phpunit/includes/title/NaiveForeignTitleFactoryTest.php index 504e87128e..b8cc39f054 100644 --- a/tests/phpunit/includes/title/NaiveForeignTitleFactoryTest.php +++ b/tests/phpunit/includes/title/NaiveForeignTitleFactoryTest.php @@ -27,40 +27,40 @@ class NaiveForeignTitleFactoryTest extends MediaWikiTestCase { public function basicProvider() { - return array( - array( + return [ + [ 'MainNamespaceArticle', 0, new ForeignTitle( 0, '', 'MainNamespaceArticle' ), - ), - array( + ], + [ 'MainNamespaceArticle', null, new ForeignTitle( null, '', 'MainNamespaceArticle' ), - ), - array( + ], + [ 'Talk:Nice_talk', 1, new ForeignTitle( 1, 'Talk', 'Nice_talk' ), - ), - array( + ], + [ 'Bogus:Nice_talk', 0, new ForeignTitle( 0, '', 'Bogus:Nice_talk' ), - ), - array( + ], + [ 'Bogus:Nice_talk', 9000, // non-existent local namespace ID new ForeignTitle( 9000, 'Bogus', 'Nice_talk' ), - ), - array( + ], + [ 'Bogus:Nice_talk', 4, // existing local namespace ID new ForeignTitle( 4, 'Bogus', 'Nice_talk' ), - ), - array( + ], + [ 'Talk:Extra:Nice_talk', 1, new ForeignTitle( 1, 'Talk', 'Extra:Nice_talk' ), - ), - array( + ], + [ 'Talk:Extra:Nice_talk', null, new ForeignTitle( null, 'Talk', 'Extra:Nice_talk' ), - ), - ); + ], + ]; } /**