wiki.techinc.nl/tests/phpunit/mocks
Thiemo Kreuz 68ec2661d2 Use native array_column() in tests instead of loops
It's just a nice, lesser known convenience function. Exists since
PHP 5.5.

The changes to SerializationTestTrait ended being a little different.
Original I tried to use array_column() as well. But it drops the
array keys, which is relevant here.

We found that calling the two methods getTestInstances(AndAssertions)
multiple times is quite expensive and should be avoided. I changed
the code slightly so it's much less likely this is done unintentionally.

Change-Id: Ifaba3c370871a7c97b4d81ec21ff6ec134433fc0
2022-08-16 15:41:14 +02:00
..
content phpunit: Fix trivial dynamic property usages in tests 2022-07-29 01:59:23 +02:00
filebackend tests: Use standard utilities for temporary file names 2019-05-06 17:21:45 +00:00
filerepo tests: Use standard utilities for temporary file names 2019-05-06 17:21:45 +00:00
json Safe ParserOutput extension data and JsonUnserializable helper. 2020-11-10 11:21:09 -07:00
languages Language: Turn public properties into Getters in LanguageConverter based hierarchy 2021-02-03 15:17:42 +02:00
media Remove terminating line breaks from debug messages 2020-06-03 12:01:16 +10:00
permissions DeletePage: add option to delete the associated talk page 2022-01-11 14:48:56 +01:00
poolcounter Fast stale ParserCache responses 2020-06-05 16:24:22 +10:00
search LinkCache: soft deprecate addGoodLinkObj() 2021-09-10 16:00:02 +02:00
session Fix some PSR12.Properties.ConstantVisibility.NotFound in tests/phpunit/ 2020-05-09 23:55:09 +00:00
DummyServicesTrait.php Add support for nested property schemas in MainConfigSchema. 2022-06-29 16:34:43 +10:00
GhostFieldTestClass.php Forward-compat for merging CacheTime and ParserOutput mOptions 2020-11-10 07:09:41 -07:00
MockChangesListFilter.php
MockChangesListFilterGroup.php
MockHttpTrait.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
MockMessageLocalizer.php Use varargs for MessageLocalizer::msg and similar 2019-10-05 17:47:49 +00:00
MockServiceDependenciesTrait.php phpunit: Don't redefine methods in traits 2021-03-23 12:59:34 +00:00
MockTitleTrait.php Set page id to 0 for pages in virtual namespaces 2022-03-10 20:12:27 +00:00
NullGuzzleClient.php Use mock Guzzle client during tests 2022-01-18 13:14:51 +11:00
NullHttpRequestFactory.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
NullMultiHttpClient.php Use native array_column() in tests instead of loops 2022-08-16 15:41:14 +02:00
TestLocalisationCache.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
TestLogger.php Remove unused default values from class properties 2021-05-12 13:44:28 +02:00