AtoumBundle icon indicating copy to clipboard operation
AtoumBundle copied to clipboard

Test class for container

Open flip111 opened this issue 11 years ago • 0 comments

The best Test baseclass to work with the container is WebTestCase.

However calling $this->getKernel() just returns null. Expected here either get the kernel or throw an exception.

Then to create the kernel the only option is to do $this->createClient() which gets a client which is useless if you just want the kernel.

Last a convenience function to access the container would be nice, perhaps ->get() like in symfony controllers to get services.

flip111 avatar May 26 '14 14:05 flip111