相关疑难解决方法(0)

在第81行的vendor/behat/mink-extension/src/Behat/MinkExtension/Context/RawMinkContext.php中的非对象上调用成员函数getSession()

尝试从命令行运行我的behat测试时出现此错误.

错误的完整输出如下所示:

$ behat                                       
Feature: View a list of current custom tariffs
    In order to provide custom call pricing to customers
    As a user of the Voxbeam Admin site
    I expect to be able to correctly administrate a users custom tariffs

  @sahi
  Scenario: Listing existing custom tariffs # features/custom_tariff_admin.feature:7
PHP Fatal error:  Call to a member function getSession() on a non-object in /Users/stuart/bin/vendor/behat/mink-extension/src/Behat/MinkExtension/Context/RawMinkContext.php on line 81
PHP Stack trace:
PHP   1. {main}() /Users/stuart/bin/vendor/behat/behat/bin/behat:0
PHP   2. Symfony\Component\Console\Application->run() /Users/stuart/bin/vendor/behat/behat/bin/behat:32
PHP   3. Behat\Behat\Console\BehatApplication->doRun() …
Run Code Online (Sandbox Code Playgroud)

php behat mink

0
推荐指数
1
解决办法
5352
查看次数

标签 统计

behat ×1

mink ×1

php ×1