How to change codeception phpbrowser/mink timeout

核能气质少年 提交于 2019-12-05 20:39:14

You can set curl options via your test suit configuration just like in example in Codeception docs.

In your case you need CURLOPT_TIMEOUT, see curl_setopt reference

modules: 
    enabled: [PhpBrowser]  
      config:
        PhpBrowser:
          url: 'http://localhost' 
          curl:
            CURLOPT_TIMEOUT: 50000 # timeout in seconds
Alex Barker

This is related to the following post: Codeception ignores CURLOPT_TIMEOUT

There is a codeception bug that prevents this value from being set. With more recent versions of codeception, >=2.0.15, you can pass CURLOPT_TIMEOUT_MS to accomplish what you are trying to do.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!