The Recess unit tests are written for PHPUnit

In order to run the unit tests for Recess take the following steps:

Figure 19.1. Setting up PHPUnit for Recess

  1. Install PEAR - Typically this is done by executing the go-pear script in your PHP installation directory.

  2. Install PHPUnit

    1. First add the PHPUnit channel to PEAR: pear channel-discover pear.phpunit.de

    2. Next install PHPUnit with pear install phpunit/PHPUnit

  3. Setup MySQL & DSN for Database Tests

    1. The default MySQL test DSN is 'localhost,dbname=recess, user=recess, password=recess'

    2. To use settings other than default modify recess/test/recess/database/PdoDsnSettings.php

  4. At a command prompt, navigate to recess/test/

  5. Run the Unit Tests: phpunit --bootstrap bootstrap.php AllTests.php


To contribute unit tests to Recess fork the source on GitHub, commit your unit tests to the fork, and request a pull from Recess. Happy testing!