Tuesday, November 29, 2011

Installing Pear PHPUnit on cPanel

We first need to add two channels at the command prompt:
# pear channel-discover pear.phpunit.de
# pear channel-discover pear.symfony-project.com

Do a quick list for the package:
# pear remote-list -c phpunit

Now we install it:
# pear install --alldeps phpunit/PHPUnit

And then double check the information:
# pear info phpunit/PHPUnit

...and you should see something like:
About pear.phpunit.de/PHPUnit-3.6.4
Release Type          PEAR-style PHP-based Package
Name                  PHPUnit
Channel               pear.phpunit.de
Summary               The PHP Unit Testing framework.
Description           The PHP Unit Testing framework.
Maintainers           Sebastian Bergmann sebastian@phpunit.de (lead)
Release Date          2011-11-25 07:33:12
Release Version       3.6.4 (stable)
API Version           3.6.0 (stable)
License               BSD License
Release Notes         http://github.com/sebastianbergmann/phpunit/blob/master/README.markdown
Required Dependencies PHP version 5.2.7
                      PEAR installer version 1.9.4 or newer
                      Package pear.phpunit.de/File_Iterator
                        Version 1.3.0 or newer
                      Package pear.phpunit.de/Text_Template
                        Version 1.1.1 or newer
                      Package pear.phpunit.de/PHP_CodeCoverage
                        Version 1.1.0 or newer
                      Package pear.phpunit.de/PHP_Timer
                        Version 1.0.1 or newer
                      Package pear.phpunit.de/PHPUnit_MockObject
                        Version 1.1.0 or newer
                      Package pear.symfony-project.com/YAML
                        Version 1.0.2 or newer
                      Extension dom
                      Extension pcre
                      Extension reflection
                      Extension spl
Optional Dependencies Package pear.phpunit.de/PHP_Invoker
                        Version 1.0.0 or newer
                      Extension json
                      Extension simplexml
                      Extension tokenizer
package.xml version   2.0
Last Modified         2011-11-29 21:48
Previous Installed    - None -

No comments:

Post a Comment