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/exception/HttpErrorTest.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/exception/HttpErrorTest.php')
-rw-r--r-- | tests/phpunit/includes/exception/HttpErrorTest.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/phpunit/includes/exception/HttpErrorTest.php b/tests/phpunit/includes/exception/HttpErrorTest.php index 0aef146e2a50..e7f3a2108e49 100644 --- a/tests/phpunit/includes/exception/HttpErrorTest.php +++ b/tests/phpunit/includes/exception/HttpErrorTest.php @@ -30,34 +30,34 @@ class HttpErrorTest extends MediaWikiTestCase { } public function getHtmlProvider() { - return array( - array( - array( + return [ + [ + [ 'head html' => '<head><title>Server Error 123</title></head>', 'body html' => '<body><h1>Server Error 123</h1>' . '<p>a server error!</p></body>' - ), + ], 'a server error!', 'Server Error 123' - ), - array( - array( + ], + [ + [ 'head html' => '<head><title>loginerror</title></head>', 'body html' => '<body><h1>loginerror</h1>' . '<p>suspicious-userlogout</p></body>' - ), + ], new RawMessage( 'suspicious-userlogout' ), new RawMessage( 'loginerror' ) - ), - array( - array( + ], + [ + [ 'head html' => '<html><head><title>Internal Server Error</title></head>', 'body html' => '<body><h1>Internal Server Error</h1>' . '<p>a server error!</p></body></html>' - ), + ], 'a server error!', null - ) - ); + ] + ]; } } |