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
filerepo
json
languages
media
permissions
poolcounter
search
session
DummyServicesTrait.php Add support for nested property schemas in MainConfigSchema. 2022-06-29 16:34:43 +10:00
GhostFieldTestClass.php
MockChangesListFilter.php
MockChangesListFilterGroup.php
MockHttpTrait.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
MockMessageLocalizer.php
MockServiceDependenciesTrait.php
MockTitleTrait.php Set page id to 0 for pages in virtual namespaces 2022-03-10 20:12:27 +00:00
NullGuzzleClient.php
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