Phpunit uninstall and install the specified version

Source: Internet
Author: User

Clearing the pear cache helps, also in summary:

A) text_template has to be uninstalled before mock_object which it depends on

B) token_stream also has to be uninstalled as version 1.0.1 has to be installed before code_coverage which instils 1.1.1 as Scott put it

C) text_template has to be installed before mock_object which will install the 1.1.1

The final command listing that worked for me is (I am on windows so I just added sudo before pear for * nix ):


Sudo pear uninstall phpunit/phpunit
Sudo pear uninstall phpunit/dbunit
Sudo pear uninstall phpunit/php_codecoverage
Sudo pear uninstall phpunit/file_iterator
Sudo pear uninstall phpunit/php_timer
Sudo pear uninstall phpunit/phpunit_mockobject
Sudo pear uninstall phpunit/text_template
Sudo pear uninstall phpunit/phpunit_selenium
Sudo pear uninstall pear.symfony-project.com/yaml
Sudo pear uninstall phpunit/php_tokenstream

Sudo pear clear-Cache

sudo pear install pear.symfony-project.com/yaml-1.0.2
sudo pear install phpunit/PHPUnit_Selenium-1.0.1
sudo pear install phpunit/Text_Template-1.0.0
sudo pear install phpunit/PHPUnit_MockObject-1.0.3
sudo pear install phpunit/PHP_Timer-1.0.0
sudo pear install phpunit/File_Iterator-1.2.3
sudo pear install phpunit/PHP_TokenStream-1.0.1
sudo pear install phpunit/PHP_CodeCoverage-1.0.2
sudo pear install phpunit /DbUnit-1.0.0
sudo pear install phpunit/PHPUnit-3.5.15

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.