[英]PHP Fatal error: Failed opening required 'goutte'
I am running Ubuntu 12.04.3 LTS
and my php version is 5.5.9-1+sury.org~precise+1
. 我正在运行
Ubuntu 12.04.3 LTS
而我的PHP版本是5.5.9-1+sury.org~precise+1
。 I want to test a web page, so included in my project behat
, mink
and its goutte
extension using composer. 我想测试一个网页,因此使用composer将其包含在我的项目
behat
, mink
和其goutte
扩展中。
When I run behat
in the terminal I get the following error: 在终端中运行
behat
,出现以下错误:
PHP Warning: require(goutte): failed to open stream: No such file or directory in /home/andreea/public_html/vendor/behat/behat/src/Behat/Behat/Extension/ExtensionManager.php on line 112
PHP Fatal error: require(): Failed opening required 'goutte' (include_path='.:/usr/share/php:/usr/share/pear') in /home/andreea/public_html/vendor/behat/behat/src/Behat/Behat/Extension/ExtensionManager.php on line 112
My composer.json
file looks like this: 我的
composer.json
文件如下所示:
{
"name": "glp/glp",
"description": "My page",
"require": {
"paymill/paymill": "v3.0.0",
"behat/behat": "2.4.*@stable",
"behat/mink": "1.5.*@stable",
"behat/mink-goutte-driver": "*",
"behat/mink-extension": "*"
},
"minimum-stability": "dev",
"config": {
"bin-dir": "bin/"
}
}
And behat.yml
is: 而
behat.yml
是:
default:
paths:
features: features
bootstrap: %behat.paths.features%/bootstrap
extensions:
Behat\MinkExtension\Extension:
goutte: ~
I need some help to make it work. 我需要一些帮助才能使其正常运行。 Thanks!
谢谢!
You're missing one level of indentation in front of goutte : 您在goutte前面缺少一个缩进级别 :
default:
paths:
features: features
bootstrap: %behat.paths.features%/bootstrap
extensions:
Behat\MinkExtension\Extension:
goutte: ~
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.