wiki.techinc.nl/tests/phpunit/includes/libs
C. Scott Ananian ea4bedee9d Remove misleading test in SerializationTestTrain::validateObjectEquality()
The initial object comparison using `==` compares all the property values
using `==` as well.  This causes (for example) the string "1" to compare
as equal to the number `1`, the empty string `""` to compare as equal
to the number `0` and other surprising things.

It appears that this comparison was done at an attempt at performance
optimization, but that has little place in a test suite.  Use the full
recursive strict comparison instead.

This requires updating one ParserCache test case which was apparently
created incorrectly (or not properly updated) and relied on the
previous behavior (numbers comparing as equal to strings) to pass.

Change-Id: Ife0e9ccc7be0f4933975bb326203693bc15a9658
2022-03-31 09:50:51 -04:00
..
filebackend/fsfile phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
objectcache Improve ObjectCache integration tests 2022-02-11 10:20:33 +11:00
serialization Remove misleading test in SerializationTestTrain::validateObjectEquality() 2022-03-31 09:50:51 -04:00
GenericArrayObjectTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00