O'Reilly logo

PHP Application Development with NetBeans Beginner's Guide by M A Hossain Tonu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — installing PHPUnit via PEAR

In the following steps, we will upgrade PEAR and install PHPUnit via PEAR, for the corresponding environments:

  1. Run the command prompt as an administrator, go to the PHP installation directory where the pear.bat file belongs (D:\xampp\php), and execute the following command:
    pear upgrade pear
    
    

    This upgrades the existing PEAR installation. In Ubuntu or Mac OS X system, run the following command:

    sudo pear upgrade pear
    
    

    In the case of MAMP, if you encounter the error sudo: pear: command not found, then refer to the section Configuring MAMP issues.

  2. To install the latest PHPUnit, type the following two commands:
    pear config-set auto_discover 1
    pear install pear.phpunit.de/PHPUnit
    
    

    It discovers the download ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required