I recommend typehinting Illuminate\Container\Container as in the Illuminate\Foundation\Application class it binds itself to the Container class with $this->instance('Illuminate\Container\Container', $this);
What I don't understand is, neither Dependency Injection, nor IoC is working at all. I've tried loads of things now, like extending the Laravel TestCase and running the main PHPUnit from the workbench directory, but I simply can't get it working. Any hints?
Worked it out.
I had to run ../../../vendor/bin/phpunit to test from the right point.
Now for my huge palm face moment, I forgot to run parent::setUp in the setUp method. Running this worked everything out.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community