wiki.techinc.nl/tests/phpunit/includes/api
Bartosz Dziewoński 485f66f174 Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient
Find: /isset\(\s*([^()]+?)\s*\)\s*\?\s*\1\s*:\s*/
Replace with: '\1 ?? '

(Everywhere except includes/PHPVersionCheck.php)
(Then, manually fix some line length and indentation issues)

Then manually reviewed the replacements for cases where confusing
operator precedence would result in incorrect results
(fixing those in I478db046a1cc162c6767003ce45c9b56270f3372).

Change-Id: I33b421c8cb11cdd4ce896488c9ff5313f03a38cf
2018-05-30 18:06:13 -07:00
..
format Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
query Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiBaseTest.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiBlockTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiCheckTokenTest.php Add tests for ApiCheckToken 2018-01-01 02:06:59 +02:00
ApiClearHasMsgTest.php Add message to the assert of ApiClearHasMsgTest 2018-01-03 04:29:23 +02:00
ApiComparePagesTest.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiContinuationManagerTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ApiDeleteTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiDisabledTest.php Test ApiDisabled.php 2018-03-20 18:01:07 +02:00
ApiEditPageTest.php Call Database::timestamp in some tests 2018-05-29 22:28:36 +02:00
ApiErrorFormatterTest.php Update suppressWarning()/restoreWarning() calls 2018-02-10 08:50:12 +00:00
ApiLoginTest.php Improve test coverage for ApiLogin.php 2018-03-21 19:57:27 +02:00
ApiMainTest.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiMessageTest.php Switch to librarized version of TestingAccessWrapper 2017-04-20 14:15:57 +00:00
ApiModuleManagerTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ApiMoveTest.php Test ApiMove 2018-04-15 14:13:08 +03:00
ApiOpenSearchTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ApiOptionsTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ApiPageSetTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
ApiParseTest.php API: Add ApiParseTest case for 'styles' in getDefaultModules 2018-05-04 01:03:47 +01:00
ApiPurgeTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiQueryAllPagesTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiQueryRecentChangesIntegrationTest.php Merge "Add ability to filter based on rc_title in API" 2018-05-24 10:13:06 +00:00
ApiQueryWatchlistIntegrationTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiQueryWatchlistRawIntegrationTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiResultTest.php
ApiRevisionDeleteTest.php
ApiSetNotificationTimestampIntegrationTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiStashEditTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiTestCase.php Merge "Test ApiUserrights" 2018-04-12 19:54:51 +00:00
ApiTestCaseUpload.php Drop deprecated EnableAPI and EnableWriteAPI settings 2018-04-18 00:30:34 +00:00
ApiTestContext.php
ApiTokensTest.php
ApiUnblockTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
ApiUploadTest.php Rename ApiTestCaseUpload 2018-03-16 18:40:38 +01:00
ApiUploadTestCase.php Drop deprecated EnableAPI and EnableWriteAPI settings 2018-04-18 00:30:34 +00:00
ApiUsageExceptionTest.php Add @covers tags API tests without them 2017-12-27 17:50:06 +00:00
ApiUserrightsTest.php Test ApiUserrights 2018-04-12 21:26:02 +03:00
ApiWatchTest.php Get rid of ApiTestCase::doLogin 2018-04-11 20:17:52 +03:00
generateRandomImages.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
MockApi.php
MockApiQueryBase.php
PrefixUniquenessTest.php
RandomImageGenerator.php Use PHP 5.6 '**' operator instead of 'pow()' function 2018-05-30 18:05:19 -07:00
UserWrapper.php
words.txt