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

后端 未结 4 1947
花落未央
花落未央 2021-02-05 00:53

I\'m trying to setup a unit test but whenever I run \"phpunit -c app\" I get this error:

Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFou

4条回答
  •  执笔经年
    2021-02-05 01:29

    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 option under php in the phpunit.xml file

提交回复
热议问题