diff options
author | Kunal Mehta <legoktm@member.fsf.org> | 2016-02-17 01:09:32 -0800 |
---|---|---|
committer | Kunal Mehta <legoktm@member.fsf.org> | 2016-02-17 01:33:00 -0800 |
commit | 6e9b4f0e9ce4ccd6089c18b205065ef7fa077484 (patch) | |
tree | 58645fbce5c12d01b0d0fa87e338d4745e08920d /tests/phpunit/includes/api/query/ApiQueryContinue2Test.php | |
parent | 2fd379fa95f223c6b3f3c8eff6de068eca9e1a1a (diff) | |
download | mediawikicore-6e9b4f0e9ce4ccd6089c18b205065ef7fa077484.tar.gz mediawikicore-6e9b4f0e9ce4ccd6089c18b205065ef7fa077484.zip |
Convert all array() syntax to []
Per wikitech-l consensus:
https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html
Notes:
* Disabled CallTimePassByReference due to false positives (T127163)
Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQueryContinue2Test.php')
-rw-r--r-- | tests/phpunit/includes/api/query/ApiQueryContinue2Test.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php b/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php index cd735223c25e..8f11a51168e1 100644 --- a/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php +++ b/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php @@ -50,18 +50,18 @@ class ApiQueryContinue2Test extends ApiQueryContinueTestBase { public function testA() { $this->mVerbose = false; $mk = function ( $g, $p, $gDir ) { - return array( + return [ 'generator' => 'allpages', 'gapprefix' => 'AQCT73462-', 'prop' => 'links', 'gaplimit' => "$g", 'pllimit' => "$p", 'gapdir' => $gDir ? "ascending" : "descending", - ); + ]; }; // generator + 1 prop + 1 list $data = $this->query( $mk( 99, 99, true ), 1, 'g1p', false ) + - array( 'batchcomplete' => true ); + [ 'batchcomplete' => true ]; $this->checkC( $data, $mk( 1, 1, true ), 6, 'g1p-11t' ); $this->checkC( $data, $mk( 2, 2, true ), 3, 'g1p-22t' ); $this->checkC( $data, $mk( 1, 1, false ), 6, 'g1p-11f' ); |