wiki.techinc.nl/tests/phpunit/includes/api
Thiemo Kreuz 6b2c9deef5 Replace all new stdClass() with identical (object)[]
This should be the exact same. Its more a style change than anything.
So why do it then?
* I believe this is much less confusing than code mentioning a weird
"standard class". Barely anybody knows what this is, and what the
difference between "object" and "stdClass" is.
* The code is shorter.
* It's even faster. In my micro benchmark it's twice as fast.

Change-Id: I7ee0e8ae6d9264a89b6cd1dd861f0466ae620ccc
2020-03-04 21:18:30 +00:00
..
format Fix most PHPUnit 8 compat issues in DBless tests 2019-12-15 00:24:21 +00:00
query Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
Validator Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ApiBaseTest.php API: Use ParamValidator library 2020-02-04 13:36:14 -05:00
ApiBlockInfoTraitTest.php Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00
ApiBlockTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php
ApiComparePagesTest.php Add $wgDiffEngine 2019-11-05 10:38:52 -05:00
ApiContinuationManagerTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiCSPReportTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiDeleteTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiDisabledTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiEditPageTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiErrorFormatterTest.php Remove Language::factory and getParentLanguage use 2019-10-27 12:34:28 +02:00
ApiLoginTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiLogoutTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiMainTest.php ApiMain: Add support for assert=anon 2020-02-19 22:37:31 +01:00
ApiMessageTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiModuleManagerTest.php phpcs: Enable MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedException* and make pass 2019-10-14 12:48:48 -07:00
ApiMoveTest.php Add target page as a parameter to articleexists message 2019-12-20 00:09:45 +00:00
ApiOpenSearchTest.php
ApiOptionsTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiPageSetTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
ApiParseTest.php Remove Preprocessor_DOM, deprecated in 1.34 2020-01-25 11:22:45 -05:00
ApiPurgeTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ApiQueryAllPagesTest.php tests: Fix broken assertion in ApiQueryAllPagesTest 2019-09-30 16:22:54 +02:00
ApiQueryBlockInfoTraitTest.php API: Use ApiBlockInfoTrait in ApiQueryUsers and AllUsers 2019-09-18 19:44:01 +00:00
ApiQueryBlocksTest.php Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00
ApiQueryDisabledTest.php
ApiQueryInfoTest.php Autofix 94 PHPUnit 8 compat issues 2019-12-13 15:29:10 +01:00
ApiQueryLanguageinfoTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ApiQueryPrefixSearchTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiQueryRecentChangesIntegrationTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ApiQuerySearchTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiQuerySiteinfoTest.php Remove usages of deprecated Language methods 2020-02-16 00:45:48 +00:00
ApiQueryWatchlistIntegrationTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ApiQueryWatchlistRawIntegrationTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
ApiResultTest.php Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
ApiRevisionDeleteTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00
ApiSetNotificationTimestampIntegrationTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiStashEditTest.php Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUse 2020-01-10 09:32:25 -08:00
ApiTestCase.php Hard deprecate ApiTestCase::doLogin 2020-02-15 02:31:33 +00:00
ApiTestContext.php
ApiTokensTest.php Remove usages of deprecated User::getRights. 2019-08-20 19:43:54 -07:00
ApiUnblockTest.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
ApiUploadTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
ApiUploadTestCase.php Tests: Pass a user to FileDeleteForm::doDelete 2020-02-19 22:32:31 +00:00
ApiUsageExceptionTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiUserrightsTest.php Use nullable type in function signature 2019-11-20 19:20:38 +01:00
ApiWatchTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
generateRandomImages.php tests: Replace RandomImageGenerator dictionary logic with rand+time 2019-10-25 02:07:21 +01:00
MockApi.php
MockApiQueryBase.php Replace some oldskool @see with @inheritDoc 2019-11-08 18:00:27 +00:00
RandomImageGenerator.php Coding style: Auto-fix MediaWiki.Usage.IsNull.IsNull 2020-01-10 14:17:13 -08:00
UserWrapper.php
words.txt