通过pear安装phpunit/phpunit-3.5.5(声纳用)

通过pear安装phpunit/phpunit-3.5.5(声纳用),php,maven,phpunit,pear,sonarqube,Php,Maven,Phpunit,Pear,Sonarqube,我正在尝试设置,这个插件需要特定版本的特定软件包 所以,当我试图使用以下命令安装phpunit3.5.5时,它正在安装更新的版本。我做错了什么 [VMWARE] root@localhost ~ # pear install phpunit/PHPUnit-3.5.5 Did not download optional dependencies: phpunit/PHP_Invoker, use --alldeps to download automatically phpunit/PHP

我正在尝试设置,这个插件需要特定版本的特定软件包

所以,当我试图使用以下命令安装phpunit3.5.5时,它正在安装更新的版本。我做错了什么

[VMWARE] root@localhost ~  
 # pear install phpunit/PHPUnit-3.5.5
Did not download optional dependencies: phpunit/PHP_Invoker, use --alldeps to download automatically
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/PHPUnit can optionally use PHP extension "soap"
phpunit/DbUnit requires package "phpunit/PHPUnit" (version >= 3.6.0), downloaded version is 3.5.5
phpunit/PHPUnit requires package "phpunit/DbUnit" (version >= 1.0.0)
phpunit/PHPUnit can optionally use package "phpunit/PHP_Invoker" (version >= 1.1.0)
downloading PHPUnit_Selenium-1.2.1.tgz ...
Starting to download PHPUnit_Selenium-1.2.1.tgz (23,083 bytes)
.......done: 23,083 bytes
downloading PHPUnit-3.6.10.tgz ...
Starting to download PHPUnit-3.6.10.tgz (118,595 bytes)
...done: 118,595 bytes
install ok: channel://pear.phpunit.de/PHPUnit-3.6.10
install ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.2.1
[VMWARE] root@localhost ~  

要从“未回答的问题”页面获取此信息,请参阅以获得问题的确切答案。

phpunit/DbUnit
需要
“phpunit/phpunit”(版本>=3.6.0)
,安装时会安装更高版本。卸载它并告诉pear要安装哪个版本的DBUnit,例如与PHPUnit 3.5.5一起使用的版本。但是这个插件也可能与phpunit3.6.10配合使用,所以这实际上没有什么问题?(首先检查)不,它似乎不适用于3.6.10。。。。我将尝试按照您的建议安装dbunit firstpear install phpunit/dbunit-1.0.0 phpunit/phpunit-3.5.5 phpunit/phpunit\u Selenium-1.0.1请参阅中第二高的答案