【发布时间】:2015-01-21 07:56:43
【问题描述】:
我正在使用ZendFramework 1.x & 2.x,不幸的是ZendFramework 1.x 仅支持PHPUnit 3.x 和Zend Framework 2.x 需要PHPUnit 4.x
为此我想安装 2 个版本的 PHPUnit,这是我尝试过的 composer.json 文件。
{
"repositories": [{
"type": "pear",
"url": "http://pear.symfony-project.com"
},{
"type": "pear",
"url": "http://pear.phpunit.de"
}],
"require-dev": {
"pear-pear.phpunit.de/PHPUnit": "3.4.*",
"phpunit/phpunit": "*"
}
}
我收到以下消息。
跳过安装 phpunit/phpunit 包的 bin phpunit: name 与现有文件冲突
在vendor/bin 目录中安装时,我可以告诉作曲家使用不同的名称吗?例如"pear-pear.phpunit.de/PHPUnit": "3.4.*" 使用vendor/bin/pu34 & "phpunit/phpunit": "*" 使用vendor/bin/pu
是否可以在作曲家中做到这一点?
【问题讨论】:
标签: zend-framework zend-framework2 phpunit composer-php