wiki.techinc.nl/tests/phpunit/unit/includes
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
..
auth Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
cache Add LinkBatchFactory to inject services into LinkBatch 2020-01-06 17:02:31 +01:00
changes Cleanup of old PHPUnit usage, part 2 2019-10-04 21:47:46 -07:00
composer Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
config Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
content Use ObjectFactory to construct ContentHandlers 2020-02-10 21:36:36 +03:00
debug/logger Stop using assertContains with string haystack 2019-12-15 00:22:44 +00:00
deferred Move unit tests, round III 2019-07-09 22:06:59 +02:00
diff tests: Replace PHPUnit's loose assertEquals(null) with assertNull() 2019-09-27 19:15:38 +00:00
exception Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
filebackend Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
filerepo/file phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
GlobalFunctions Add public as visibility in tests folder 2019-10-10 21:55:37 +02:00
htmlform Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
http Split HttpTest and SessionTest to unit and integration 2019-07-13 21:01:09 +02:00
installer Merge "Fix installation failure due to unexpected dbpath under CLI installation" 2019-09-06 17:38:36 +00:00
interwiki tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
jobqueue Return deduplication to CategoryMembershipJob 2019-10-29 06:10:22 +00:00
json Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
language Remove unreachable null checks after isset() 2020-02-28 21:40:48 +00:00
libs Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
media tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
objectcache tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
page Replace Linker::link usage with LinkRenderer in includes 2020-01-11 11:20:17 +01:00
parser Fix the namespace of SpecialPageFactory 2020-02-21 13:46:19 +11:00
password PasswordFactoryTest: assertArraySubset() is deprecated 2020-01-17 16:04:47 +00:00
preferences tests, preferences: Use $this-> instead of self:: when creating TD 2020-01-19 13:30:29 +00:00
registration Update all use of $wgVersion to MW_VERSION 2020-02-25 02:16:12 +00:00
resourceloader tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
Rest SearchHandler: implement limit parameter 2020-03-04 11:13:55 +01:00
Revision phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
search Add faux SearchResult and SearchResultSet 2019-10-07 16:35:58 +02:00
session Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
shell shell: Skip FirejailCommandTest::testBuildFinalCommand() on Windows 2020-02-11 16:31:31 +00:00
skins Cleanup of old PHPUnit usage, part 3 2019-10-05 00:00:45 -07:00
Storage Add public as visibility in tests folder 2019-10-10 21:55:37 +02:00
tidy Move unit tests, round III 2019-07-09 22:06:59 +02:00
title Coding style: Auto-fix MediaWiki.Usage.PHPUnit* 2020-01-10 10:17:12 +00:00
user Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
utils Replace some oldskool @see with @inheritDoc 2019-11-08 18:00:27 +00:00
watcheditem Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
BadFileLookupTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
DerivativeRequestTest.php Move unit tests, round III 2019-07-09 22:06:59 +02:00
FactoryArgTestTrait.php Add LinkBatchFactory to inject services into LinkBatch 2020-01-06 17:02:31 +01:00
FauxResponseTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
FormOptionsInitializationTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
FormOptionsTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
LicensesTest.php Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
PathRouterTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
SanitizerValidateEmailTest.php Move unit tests, round III 2019-07-09 22:06:59 +02:00
ServiceWiringTest.php Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
SiteConfigurationTest.php SiteConfiguration: Optimise getSetting() internals for getAll() 2020-03-04 02:12:16 +00:00
TitleArrayFromResultTest.php Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
XmlJsTest.php Move unit tests, round III 2019-07-09 22:06:59 +02:00
XmlSelectTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00