I am trying to set-up Behat but it fails to init when I run bin/behat --init
. My composer.json
is taken from the official docs:
{
"require": {
"behat/behat": "2.4.*@stable",
"behat/mink": "1.4.*@stable",
"behat/mink-extension": "*",
"behat/mink-goutte-driver": "*",
"behat/mink-selenium2-driver": "*"
},
"minimum-stability": "dev",
"config": {
"bin-dir": "bin/"
}
}
The composer install
works fine and looks like all dependencies get installed.
# behat.yml
default:
paths:
features: features
bootstrap: features/bootstrap
extensions:
Behat\MinkExtension\Extension:
base_url: http://en.wikipedia.org
goutte: ~
selenium2: ~
annotations:
paths:
features: features/annotations
closures:
paths:
features: features/closures
Running # bin/behat --init
yields the following error:
PHP Strict Standards: Declaration of Behat\Mink\Driver\Goutte\Client::createResponse() should be compatible with Goutte\Client::createResponse(GuzzleHttp\Message\Response $response) in /web/Test-1/vendor/behat/mink-goutte-driver/src/Behat/Mink/Driver/Goutte/Client.php on line 23
Strict Standards: Declaration of Behat\Mink\Driver\Goutte\Client::createResponse() should be compatible with Goutte\Client::createResponse(GuzzleHttp\Message\Response $response) in /web/Test-1/vendor/behat/mink-goutte-driver/src/Behat/Mink/Driver/Goutte/Client.php on line 23
[ReflectionException]
Class Guzzle\Http\Client does not exist
Could somebody tell me why? I did everything exactly like in official article.