尝试从命令行运行我的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)