Keep getting 'You have requested a non-existent service "test.client"' in Symfony2 Beta3 Keep getting 'You have requested a non-existent service "test.client"' in Symfony2 Beta3 symfony symfony

Keep getting 'You have requested a non-existent service "test.client"' in Symfony2 Beta3


Have you enabled the framework.test option in config_test.yml?

framework:  test: ~


In phpunit.xml you should have env variable like:

<env name="APP_ENV" value="test"/>


I had this problem with symfony version 3.3.13.

The config_test.yml file was fine, but I did the same mistake.

I solved adding the <server name ="APP_ENV" value="test" /> option under php in the phpunit.xml file