一旦我创建了接口类并在User类中实现了它,我的测试就停止了工作。 测试抛出此错误:
Class appmodelsMyInterface was not found by locator
我发现GoParserReflectionReflectionEngine
调用interface_exists($fullClassName, false)
并且返回 false。
知道如何解决这个问题吗?
编辑
我添加了一个功能测试,现在它找不到我用来扩展的 BaseController 类。
Class appcontrollersBaseController was not found by locator
控制器甚至不在我的$kernel->init(['includePaths' => ...])
所以我认为它应该被goaop忽略吗?
任何意见将不胜感激。
我已经用这个答案解决了这个问题。 你也可以在Github上看看这个问题。