我正在尝试在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上运行,那么我该怎么做才能解决这个错误,但不能使用引号?