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