使用 Yii2 进行编码,运行时出错


Codeception with Yii2, error when run

我使用的是高级 Yii2 Templet,当我在构建后运行测试时,我遇到了以下问题。

我不知道命名空间是什么,所以如果你能向我解释它是什么,请问。

错误

Please add `namespace` section into included codeception.yml file 

codeception.yml

include:
  - codeception/console
  - codeception/api
paths:
  log: codeception/_output
settings:
  colors: true

codeception/api/codeception.yml文件中,您应该像这样编写namespace部分:

namespace: tests'codeception'api