Support the ongoing development of Laravel.io →
IOC Packages
Last updated 2 years ago.
0

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);

Last updated 2 years ago.
0

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?

Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Firemango firemango Joined 12 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.