wiki.techinc.nl/tests/phpunit/unit/includes/libs
Tim Starling d737242a6e MapCacheLRU: Restore key type checks
Partially revert 74b4d669a7. Type checks were removed on the
basis that they are redundant with the PHP warnings raised by
array_key_exists(), but PHP 8.0 does not raise such warnings. The
PHP 8.0 migration doc says: "The behavior of array_key_exists()
regarding the type of the key parameter has been made consistent with
isset() and normal array access. All key types now use the usual
coercions and array/object keys throw a TypeError."

We could just remove the tests, but the original rationale does stand,
since without this change, we have

> $m = new MapCacheLRU(4);
> $m->set(3.4, 'x');
> print $m->get(3, 'x');
x

without any warning, which seems surprising.

Bug: T283275
Change-Id: I3628daef21611ff3f6bc252f105deed886ce8088
2022-01-21 15:22:32 +11:00
..
composer build: Updating dependencies 2021-07-22 03:36:05 +00:00
filebackend phpunit: Use is_file/is_dir instead of file_exists 2022-01-03 21:47:56 +01:00
http Always encode spaces in cookie values as "%20" 2021-10-15 04:40:53 -04:00
Message Add Message/MessageValue user group member parameter type 2021-11-16 11:24:35 -05:00
Metrics Metrics: Add test coverage for getRenderedSamples() and send() 2021-10-23 03:13:40 +00:00
mime Remove or replace usages of "sanity" 2021-11-21 16:42:31 +00:00
objectcache objectcache: add watchErrors() to BagOStuff/WANObjectCache 2021-11-10 00:38:27 +00:00
ParamValidator Remove or replace usages of "sanity" 2021-11-21 16:42:31 +00:00
rdbms Add ConnectionManager::getLazyWriteConnectionRef() 2022-01-17 13:51:05 +01:00
stats stats: Simplify normalizeMetricKey() and fix bad output for edge cases 2021-09-10 19:39:30 +00:00
uuid build: Updating dependencies 2021-07-22 03:36:05 +00:00
ArrayUtilsTest.php
CookieTest.php
DeflateTest.php Update Legoktm's email address 2021-05-02 05:39:37 +00:00
DnsSrvDiscovererTest.php
GhostFieldAccessTraitTest.php
HashRingTest.php
HtmlArmorTest.php
MapCacheLRUTest.php MapCacheLRU: Restore key type checks 2022-01-21 15:22:32 +11:00
MemoizedCallableTest.php
SamplingStatsdClientTest.php
StaticArrayWriterTest.php language: Autoload normalize data and remove transformUsingPairFile compat 2021-08-10 21:03:13 +00:00
StringUtilsTest.php
TimingTest.php
XhprofDataTest.php
XhprofTest.php profiler: Fixup broken logic for the new 'running' option 2021-09-16 03:26:23 +01:00
XmlTypeCheckTest.php