Symfony2 phpUnit YAML解析错误

时间:2015-12-24 15:22:32

标签: php symfony phpunit yaml

我正在尝试在symfony2项目中运行单元测试,但由于YAML解析错误,测试失败:

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

引起:

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

当然,我应该使用引号,但这可以在其他PC上运行,那么我该怎么做才能解决这个错误,但不能使用引号?

0 个答案:

没有答案