Unit Tests For The Platform: Difference between revisions

From Joomla! Documentation

Elin (talk | contribs)
New page: This is a very early stage document about running unit tests on the platform. To run tests on the platform you will need to install PHPUnit 3.5. You may also need to update your version o...
 
Elin (talk | contribs)
No edit summary
Line 8: Line 8:
To install, go to the command line and type:
To install, go to the command line and type:


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


pear install -f --alldeps phpunit/PHPUnit
pear install -f --alldeps phpunit/PHPUnit

Revision as of 10:20, 5 April 2011

This is a very early stage document about running unit tests on the platform.

To run tests on the platform you will need to install PHPUnit 3.5. You may also need to update your version of PEAR to the current version. If you are using Ubuntu as your OS you will need to be at minimum on version 10.10 to update to PEAR's current package using the standard packages in the software center. You will also need to have xdebug with the current version installed.

PHP must be at least version 5.2.7 but 5.3.3 is recommended.

To install, go to the command line and type:

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