Yii2 验收测试 - 注意错误

Yii2 acceptance test - Notice errors

我正在尝试 运行 空主体的验收测试:

class ContactCept
{
    public function frontpageWorks(AcceptanceTester $I)
    {

    }
}

这是我的 acceptance.suite.yml:

class_name: AcceptanceTester
modules:
    enabled:
        - WebDriver:
            url: http://localhost/website/
            browser: chrome
        - Yii2:
            part: orm
            entryScript: index-test.php
            cleanup: false

我的 xampp 是 运行ning,我可以访问 http://localhost/website/

Selenium 服务器已启动并且 运行正在运行。

当我运行命令vendor/bin/codecept 运行接受时,我的测试完成并出现错误未定义索引:HTTP_HOST

PS:Chrome 正在用 url 数据打开:;

我的问题是:我可以禁用 "notice" 类型的错误并且只有 "error" 级别吗?

找到了。在 acceptance.yml 添加行:

error_level: "E_ERROR"