Closed Stevemoretz closed 2 years ago
Testbench does not support Lumen. Please debug and suggest a fix if you can.
I would love to debug and suggest a fix, but I needed some help first, please read the end of my message, I could not use xdebug on tests, so decided to load it in a route in web.php but there I get this error:
Class 'Orchestra\Testbench\TestCase' not found
Any help would or suggestion be useful.
I can only suggest not to use Testbench on Lumen.
The error went away, by removing the namespace from the migration class, no idea what is the connection though. It probably didn't have anything to do with lumen.
Description:
when I add this:
I get the following error:
Here's the trace:
I traced it, down to PendingCommand.php:260
This is the line that causes the error to occur I can dd before it and no error, I cannot dd after it even this:
doesn't catch the error via dd, that line (PendingCommand.php:260) that does whatever it shouldn't do, and produces that error, couldn't enable xdebug for the tests, it just doesn't work.
tried putting it in a route, because xdebug works there for me :
but on the url I get this :
Class 'Orchestra\Testbench\TestCase' not found
Really stuck please help.