1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-19 23:56:17 +02:00
Files
php-monolog/tests/Monolog/Processor
Jonathan Campbell 4e03d25f6d Fix IntrospectionProcessor tests that were not validating the code under test (#1896)
Three tests in IntrospectionProcessorTest (testLevelTooLow, testLevelEqual, testLevelHigher) aren't actually testing anything. Because `$expected = $input` is a reference, the changes made to `$expected['extra']` are made to $input and carried forward to $actual. You can demonstrate this by adding a `return $record` at the immediate start of `InstrospectionProcessor::__invoke` -- the tests still pass despite bypassing all the code.
2024-06-28 10:41:10 +02:00
..
2022-03-21 14:18:54 +01:00
2022-03-21 14:18:54 +01:00
2022-03-21 14:18:54 +01:00
2022-03-21 14:18:54 +01:00
2022-03-21 14:18:54 +01:00
2022-03-21 14:18:54 +01:00
2022-03-21 14:18:54 +01:00