Я пытаюсь использовать норку с Behat на основе Zend 1, но когда я запускаю команду Behat, я получаю эту ошибку «Экземпляр Mink не был установлен в классе контекста Mink. Включили ли вы расширение Mink? (RuntimeException) "Экземпляр Mink не задан в классе контекста Mink. Включили ли вы расширение Mink? (RuntimeException)
вот мой композитор:
"behat/behat": "^[email protected]",
"behat/mink": "1.5.*@stable",
"behat/mink-goutte-driver": "*",
"behat/mink-extension": "*"
& вот мой behat.yml:
default:
extensions:
Behat\MinkExtension\Extension:
base_url: http://en.wikipedia.org
goutte: ~
& вот моя особенность:
Feature: Search
In order to see a word definition
As a website user
I need to be able to search for a word
Scenario: Searching for a page that does exist
Given I am on "/wiki/Main_Page"
When I fill in "search" with "Behavior Driven Development"
And I press "searchButton"
Then I should see "agile software development"
& мой FeatureContext.php:
<?php
use Behat\Behat\Context\Context;
use Behat\Behat\Context\SnippetAcceptingContext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Behat\MinkExtension\Context\MinkContext;
class FeatureContext extends Behat\MinkExtension\Context\MinkContext
{
public function __construct()
{
}
}
Ваш полный пример [здесь] (HTTP: // WWW. inanzzz.com/index.php/post/5rxn/taking-screenshots-of-failed-scenarios-in-behat3) – BentCoder