Set up unit testing environment ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Preconditions ============= - Make sure to use at least PHP 5.1 with PDO - Make sure to use at least PHPUnit 3.3 Setup ===== Run the following commands:: $ mkdir ezcomponents $ cd ezcomponents/ $ svn co http://svn.ez.no/svn/ezcomponents/scripts $ svn co http://svn.ez.no/svn/ezcomponents/trunk $ pear channel-discover pear.phpunit.de $ pear install phpunit/phpunit $ ./scripts/setup-env.sh $ cd trunk/ $ php UnitTest/src/runtests.php -D "mysql://test:test@localhost/ezc" (Use a valid DSN for the last command.) The script runtests.php searches inside the 'trunk' directory for the components. This is default if you installed your components via a 'subversion checkout'. Developing ========== In addition to the functionality provided by PHPUnit the UnitTest package has some extra features (asserts etc.) that might be of use. Consult the API documentation for this package for more details. .. Local Variables: mode: rst fill-column: 79 End: vim: et syn=rst tw=79