Tag:

在OSX上设置PHPUnit

虽然我确信其他人最终还是弄清楚了这一点,但是我一直在关注着各种文件,并且一直在困难的时候。 http://www.phpunit.de/manual/current/en/installation.html 使听起来很容易。 然而取决于你的设置,你可能会掉下一个兔子洞。 PEAR例如必须是高于1.8.1的版本。 我当时有1.8.0,所以我去了解如何更新PEAR PEAR upgrade-all 给出一个错误。 没有访问权限 sudo PEAR upgrade-all 工作,但升级用户“sudo”拥有的PEAR安装(而不是您的主要帐户…或类似的东西,简短的版本是5,它显然不工作) cd ~ pico .bash_profile 加 export PATH=/usr/local/bin:$PATH 当你键入PEAR时,给你正确的PEAR,你终于准备好安装PHPUnit指令的第1步。 pear channel-discover pear.phpunit.de 错误。 您无权访问/ usr / local / temp sudo chmod 777 /usr/local/temp 错误。 您无权访问/usr/local/temp/channel.xml sudo chmod 777 /usr/local/temp/channel.xml pear channel-discover pear.phpunit.de 错误。 Registry directory is not writeable by the current user […]

PEAR软件包通常安装在哪里?

我正在使用Debian挤压服务器。 我已经使用aptitude install php-pear安装了PEAR。 这创build了一个目录/usr/share/php/PEAR 。 我安装了包括Phing在内的一些PEAR软件包。 我使用pear install –alldeps phing/phing安装了Phing文件,文件显示在/usr/share/php/phing 。 但是不应该将PEAR包(通常情况下)放在/usr/share/php/PEAR ? 当我跑步 pear config-get php_dir 我得到“ /usr/share/php ”。 我有东西configuration错了吗?

如何正确安装PHPUnit和PEAR?

遵循这些指导,我不得不重新安装更新版本的PHPUnit。 现在,当我启动这一行 sudo pear install –alldeps phpunit/PHPUnit 我看到一个错误消息,看起来像这样。 Unknown remote channel: pear.symfony.com phpunit/PHPUnit requires package "channel://pear.symfony.com/Yaml" (version >= 2.1.0) No valid packages found 如果我通过启动安装Yaml sudo pear install symfony/YAML 将会安装不符合PHPUnit依赖关系的旧版本(1.0.6)。 我怎么可能解决这个问题?

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

我想将我的安装PHPUnit 3.4降级到3.3。 我只是不知道该怎么做。 如何在Ubuntu上使用PEAR安装PHPUnit版本3.3?

如何卸载一个梨包?

什么是卸载梨包的命令?

调用未定义的方法PHP_CodeCoverage_Filter :: getInstance()

我已经在我的系统(Ubuntu 11)上安装了PHPUnit的全新副本,但每当我在控制台中键入phpunit ,我都会收到以下错误消息: PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in /usr/bin/phpunit on line 39 我已经安装了PHPUnit的代码覆盖率,据我所知: >sudo pear install phpunit/PHP_CodeCoverage phpunit/PHP_CodeCoverage is already installed and is the same as the released version 1.1.1 install failed 为什么我得到这个错误,我该如何解决?

sudo pecl安装apc返回错误

我运行命令: sudo pecl install apc 文件被下载,configuration成功,然后启动,我得到以下错误。 /usr/include/php5/ext/pcre/php_pcre.h:29: fatal error: pcre.h: No such file or directory 有没有办法解决它?

通过PEAR安装PHPUnit

我通过PEAR 1.9.0安装PHPUnit 3.4.6时遇到问题。 在发现通道pear.phpunit.de并尝试使用以下命令之一后: pear安装phpunit / PHPUnit 梨安装–alldeps phpunit / PHPUnit 梨安装–onlyreqdeps phpunit / PHPUnit 它失败了,给我下面的错误: 没有可用的包“pear.phpunit.de/PHPUnit” 安装失败 我发现有同样问题的人的几个线程,但升级PEAR到最新版本通常为他们工作。 另外似乎没有安装PHPUnit for Windows的教程。 编辑: 我也试图改变preferred_state到testing版; 没有帮助。 我也试图得到所有可用软件包的列表: pear remote-list -c phpunit 这给了我另一个错误: 无法下载非http URL“/c/categories.xml”