如何在Windows 7 64位中安装behat和mink驱动程序?

时间:2012-08-25 18:47:17

标签: windows-7 windows-7-x64 behat mink

我正在尝试使用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。我认为他们有 - 它的驱动器没有。

帮助感激地收到了。 伊恩

2 个答案:

答案 0 :(得分:0)

我几天前遇到过同样的问题。这是最小稳定性问题。我不知道你是如何设定最低稳定性的,但你应该做的是:

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" 
}

这应该有效,我现在就试了。请注意,我删除了对behat / mink的引用,因为这会产生另一个错误,它应该自动被发现为这些驱动程序的依赖

答案 1 :(得分:0)

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