【问题标题】:PHP composer install PHPUnit runnerPHP 作曲家安装 PHPUnit 运行器
【发布时间】:2014-10-22 15:52:18
【问题描述】:

我正在尝试使用 PHP Composer 安装 PHPUnit/Runner/Version.php,但出现以下错误。

  • 在任何版本中都找不到请求的包phpunit/phpunit-runner,可能包名有错别字。

我不确定我是否安装了错误的软件包或什么。以下是我的 composer.json 文件中的内容。

{
    "require-dev": {
        "phpunit/phpunit": "4.1.*",
        "phpunit/php-invoker": "*",
        "phpunit/dbunit": ">=1.2",
        "phpunit/phpunit-selenium": ">=1.2",
        "phpunit/phpunit-story": "*",
        "phpunit/phpunit-runner": "*" - with this removed that file is unavailable
    }
}

任何帮助都会很棒。

【问题讨论】:

标签: php phpunit composer-php


【解决方案1】:

PHPUnit_Runner_Version 是核心PHPUnit 包phpunit/phpunit in any version 的一部分。

所以没有必要单独要求,因为你发明的包名不存在。

您可能有一个在这个问题中没有问到的其他问题,即某些软件无法要求该类,但这很可能无法通过这种方式解决。

【讨论】:

    猜你喜欢
    • 2015-10-23
    • 2016-04-29
    • 2016-07-05
    • 2012-11-25
    • 2016-01-31
    • 2018-10-21
    • 2014-01-10
    • 2015-04-30
    • 2016-08-07
    相关资源
    最近更新 更多