0

我正在尝试使用http://mink.behat.org/上的说明设置 mink 以使用 behat 。正如您将看到的,大约 2 个屏幕下方告诉我们 mink 已安装但没有驱动程序。我认为这意味着它不能与任何东西交谈。

然后它为新手提供了一个 composer.json 文件。我试过了,当我跑的时候

php composer.phar install

这就是我得到的。

D:\Projects\TestCoachmaster>php composer.phar update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for behat/mink-zombie-driver * -> satisfiable by behat/mink-zombie-driver v1.0.0.
    - behat/mink-zombie-driver v1.0.0 requires symfony/process >=2.1.0,<2.2.0-dev -> no matching package found
.
  Problem 2
    - behat/mink-goutte-driver v1.0.0 requires fabpot/goutte 1.0.* -> no matching package found.
    - behat/mink-goutte-driver v1.0.3 requires fabpot/goutte @dev -> no matching package found.
    - behat/mink-goutte-driver v1.0.2 requires fabpot/goutte 1.0.*@dev -> no matching package found.
    - behat/mink-goutte-driver v1.0.1 requires fabpot/goutte 1.0.x-dev -> no matching package found.
    - Installation request for behat/mink-goutte-driver * -> satisfiable by behat/mink-goutte-driver v1.0.1, b
ehat/mink-goutte-driver v1.0.2, behat/mink-goutte-driver v1.0.3, behat/mink-goutte-driver v1.0.0.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting 
   see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.

D:\Projects\TestCoachmaster>

我曾尝试将最低稳定性调整为 dev,但这并没有帮助。

我在 Windows 7、64 位下运行 - 我必须做很多调整才能安装 bhat 和 mink。我确实认为他们有 - 它的驱动器没有。

感激地收到帮助。伊恩

4

2 回答 2

0

I went through this same problem a few days ago. This is a minimum stability issue. I don´t know how you tried to set the minimum stability, but what you should do is:

composer.json:

{
    "require": {
        "behat/mink-goutte-driver": "*",
        "behat/mink-selenium-driver": "*",
        "behat/mink-selenium2-driver": "*",
        "behat/mink-sahi-driver": "*",
        "behat/mink-zombie-driver": "*"
    },
    "minimum-stability": "dev" 
}

This should work, I tried it right now. Notice that I removed the reference to behat/mink as this produced another error and it should be automatically found as a dependence of these drivers

于 2012-08-27T07:20:33.593 回答
0

在 Windows 上安装 behat 的分步指南:openguider.wordpress.com

于 2014-02-06T17:24:26.830 回答