Difference between revisions of "PHPUnit"

From ArchWiki
Jump to: navigation, search
(Created page with '== Installing == First of all, you need PEAR to install PHPUnit. pacman -S php-pear Now you can do just like the [http://www.phpunit.de/manual/current/en/installation.html ''o…')
 
Line 6: Line 6:
 
Now you can do just like the [http://www.phpunit.de/manual/current/en/installation.html ''official documentation'']. As root, just type
 
Now you can do just like the [http://www.phpunit.de/manual/current/en/installation.html ''official documentation'']. As root, just type
 
  pear channel-discover pear.phpunit.de
 
  pear channel-discover pear.phpunit.de
 +
pear channel-discover components.ez.no
 
  pear channel-discover pear.symfony-project.com
 
  pear channel-discover pear.symfony-project.com
 
  pear install phpunit/PHPUnit
 
  pear install phpunit/PHPUnit

Revision as of 15:00, 2 March 2011

Installing

First of all, you need PEAR to install PHPUnit.

pacman -S php-pear

Now you can do just like the official documentation. As root, just type

pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear install phpunit/PHPUnit

Done.

Running

For running PHPUnit properly you must have the /usr/bin/ directory listed in the open_basedir option at the /etc/php/php.ini

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/bin/

Or just unset it

open_basedir =