Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test class for container #64

Open
flip111 opened this issue May 26, 2014 · 0 comments
Open

Test class for container #64

flip111 opened this issue May 26, 2014 · 0 comments

Comments

@flip111
Copy link

flip111 commented May 26, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant