Level 80
@kayn3n It would help if you showed us the test, and the error you’re getting.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Im trying to do a unit test with phpunit in lumen and I need to set up a usecase that uses eloquent's when, but I'm getting an error, where analyzing when it will execute the query in the usecase does not return anything in the model.
Please or to participate in this conversation.