Behat找不到PhpExecutableFinder

时间:2015-07-23 13:07:00

标签: php selenium-webdriver composer-php behat mink

执行Behat时出现以下错误:

PHP Fatal error:  Class 'Symfony\Component\Process\PhpExecutableFinder' not found

我不知道它是否正常,但在调用php composer.phar更新后,PhpExecutableFinder位于我的composer.phar中。

{
    "require": {
        "php": ">=5.4",
        "ext-mcrypt": "*",
        "slim/slim": "~2.0",
        "slim/views": "0.1.*",
        "twig/twig": "1.18.*",
        "propel/propel": "~2.0@dev",
        "zeflasher/propel2-geocodable-behavior": "dev-master",

        "behat/behat": "3.0.*@stable",
        "behat/mink": "1.6.*@stable",
        "behat/mink-extension": "@stable",
        "behat/mink-goutte-driver": "@stable",
        "behat/mink-selenium2-driver": "@stable",
        "peridot-php/leo": "~1.0"
    },

    "autoload": {
        "classmap": ["website/", "vendor/"]
    }
}

是我现在的composer.json。任何人都可以复制它吗? composer.phar是自我更新的。

1 个答案:

答案 0 :(得分:1)

composer require symfony/process

这解决了这个问题。我不知道为什么它不包含在behat中。