创建接口类并在User类中实现它后,我的测试立即停止工作。测试抛出此错误:
Class app\models\MyInterface was not found by locator
我发现Go\ParserReflection\ReflectionEngine
调用interface_exists($fullClassName, false)
并返回false。
有什么解决办法吗?
编辑
我添加了功能测试,现在找不到我用来扩展的BaseController类。
Class app\controllers\BaseController was not found by locator
控制器甚至不在我的$kernel->init(['includePaths' => ...])
中,所以我认为应该被goaop忽略吗?
任何输入都会受到赞赏。