I am working with ZendFramework 1.x & 2.x
, unfortunately ZendFramework 1.x
supports only PHPUnit 3.x
& Zend Framework 2.x
requires PHPUnit 4.x
For this i want to install 2 versions of PHPUnit, here is the composer.json file i tried.
{
"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": "*"
}
}
I am getting following message.
Skipped installation of bin phpunit for package phpunit/phpunit: name conflicts with an existing file
Is there anyway that i can tell composer to use different names when installing in vendor/bin
directory? for instance "pear-pear.phpunit.de/PHPUnit": "3.4.*"
uses vendor/bin/pu34
& "phpunit/phpunit": "*"
uses vendor/bin/pu
is it possible to do this in composer?