root/trunk/trax/test/README

Revision 192, 0.9 KB (checked in by haas, 6 years ago)

working Pear install w/ tests

Line 
1
2            PHPONTRAX TESTS README
3
4This directory contains a collection of unit tests for the Trax
5package.  To run these tests, you must have PHP available to run from
6your command line (not just your web server).  The tests are run using
7PHPUnit2.
8
9PHPUnit2 is a standard part of the PEAR library (http://pear.php.net).
10You can install PHPUnit2 on your system using pear with the command:
11
12 pear install PHPUnit2
13
14The documentation for PHPUnit2 is at
15http://pear.php.net/package/PHPUnit2
16
17These tests do not require any of the other additional packages that
18you may see mentioned in messages from the installation of PHPUnit2.
19
20With PHPUnit2 installed on your system, connect to this
21directory and type
22
23 php runtests.php
24
25on the command line.  All tests will be run automatically.
26
27Or you can run a single test, for example the test of the ActiveRecord
28class, from the command line:
29
30 php ActiveRecord.php
31
32
Note: See TracBrowser for help on using the browser.