Skip to content

Commit

Permalink
Update tests README
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lockhart committed Mar 19, 2011
1 parent ea09115 commit 84cd819
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions tests/README
@@ -1,11 +1,20 @@
Slim Tests
Slim Framework Unit Tests

This directory contains unit tests for each Slim class. I am using PHPUnit
to test the Slim class files.
I use PHPUnit 3.5.13. To run these unit tests on your system, follow the directions below. To save development time, these unit tests currently require PHP >= 5.3. However, the Slim Framework itself only requires PHP >= 5.1.

To run these unit tests:

1. Install PHPUnit
To learn more about PHPUnit, visit http://www.phpunit.de/
Visit http://www.phpunit.de/ for installation instructions.

2. Run PHPUnit
From the filesystem directory that contains the `tests` directory, you may run all unit tests or specific unit tests. Here are several examples. The '$>' in the examples below is your command prompt.

To run all tests:
$> phpunit tests

To run all HTTP-related tests:
$> phpunit tests/Http

2. Run tests
From the slim/tests/ directory, run `phpunit AllTests`. This command will
run all available unit tests and display the test results.
To run only the HTTP Request tests:
$> phpunit tests/Http/RequestTest

0 comments on commit 84cd819

Please sign in to comment.