Symfony2 phpUnit YAML parse error

流过昼夜 提交于 2019-12-12 17:39:21

问题


I'm trying to run unit test in symfony2 project, but tests fails because of YAML parse error:

The file "../services.yml" does not contain valid YAML in "../"

Caused by:

The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 6 (near "- [ setContainer, [ @service_container ] ]").

For sure, I should use quotes, but that's work on other PC, so what should I do to solve this error, but not using quotes?

来源:https://stackoverflow.com/questions/34454834/symfony2-phpunit-yaml-parse-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!