相关疑难解决方法(0)

如何通过PEAR安装旧版本的PHPUnit?

我想将我的PHPUnit 3.4安装降级到3.3.我只是不确定该怎么做.

如何使用PEAR在Ubuntu上安装3.3版的PHPUnit?

php pear phpunit

43
推荐指数
3
解决办法
3万
查看次数

无法让PHPunit正常工作

我一直在努力让PHPunit为我的zend框架项目工作,并遇到了各种各样的问题.我重新安装了PEAR并卸载了PHPunit,并重新安装了它们.

我目前的错误是

demian @ dimbo-TP:〜$ phpunit PHP警告:require_once(PHPUnit/Framework/MockObject/Autoload.php):无法打开流:/usr/share/php/PHPUnit/Autoload.php上没有这样的文件或目录48 PHP致命错误:require_once():无法打开所需的'PHPUnit/Framework/MockObject/Autoload.php'(include_path ='.:/ usr/share/php /:/ usr/local/share/php/library')in第48行的/usr/share/php/PHPUnit/Autoload.php

我使用的是ubuntu 11.10,PHP 5.3.6-13ubuntu3.2

如果有人能给我一些指示,我将非常感激.我在谷歌上看了很多,但似乎没有什么能解决我的问题.

谢谢,

德棉.

这是我的shell转储,它显示了我最近所做的事情:

demian@dimbo-TP:~$ phpunit
The program 'phpunit' is currently not installed.  You can install it by typing:
sudo apt-get install phpunit

demian@dimbo-TP:~$ sudo pear channel-discover pear.phpunit.de
[sudo] password for demian:  

Channel "pear.phpunit.de" is already initialized

demian@dimbo-TP:~$ sudo pear channel-discover pear.symfony-project.com

Channel "pear.symfony-project.com" is already initialized

demian@dimbo-TP:~$ sudo pear channel-discover components.ez.no

Channel "components.ez.no" is already initialized

demian@dimbo-TP:~$ sudo pear update-channels

Updating channel "components.ez.no"

Channel …
Run Code Online (Sandbox Code Playgroud)

php phpunit

25
推荐指数
1
解决办法
3万
查看次数

标签 统计

php ×2

phpunit ×2

pear ×1