Yii2验收测试 - 注意错误

时间:2018-04-27 08:05:27

标签: selenium testing yii2 acceptance-testing

我试图运行具有空体的验收测试:

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正在运行,我可以访问http://localhost/website/

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

当我运行命令vendor / bin / codecept运行验收时,我的测试结束时出现错误未定义索引:HTTP_HOST

PS:Chrome正在打开网址数据:;

我的问题是:我可以禁用类型错误#34;注意"只有"错误"水平吗

1 个答案:

答案 0 :(得分:0)

找到它。在acceptance.yml中添加行:

error_level: "E_ERROR"