Improve error message of InjectionException with an invalid parameter

I've also included phpunit as a dev requirement so I needed to install it to test the change.