Symfony2 and phpunit not working on lamp (ubuntu 15.x)

My symfony2 application works fine with phpunit on wamp (windows), but when you change the environment and start working with lampp (linux) after installation, I get the following error when starting the test by typing phpunit -c app /: `/ opt / lampp / htdocs / VTALLY / src / Iballot / CmsBundle / Tests / Controller / ParliamentaryControllerTest.php: 11

Symfony \ Component \ Yaml \ Exception \ ParseException raised: the reserved indicator "@" cannot trigger a simple scalar; you need to quote the scalar on line 4 (near "arguments: [@ security.context, @ fos_user.user_manager]"). `

+1
source share
1 answer

, @ :

arguments:
    ["@security.context", "@fos_user.user_manager"]

, @, . Unquoted @ Symfony 2.8. Symfony 3.0 .

, , . Symfony. 2.7, 2.8 ( ).

+2

All Articles