Skip to content
This repository
Fetching contributors…


Cannot retrieve contributors at this time

file 27 lines (18 sloc) 0.915 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Sag Tests

These would be unit tests if they didn't rely on the database - think of them
as a cross between integration and unit tests. They are written with PHPUnit
( and are known to run with version 3.3.16, though other
versions will probably work too.

The coverage directory contains code base coverage reports generated by PHPUnit
and Xdebug.

Running the Tests

Make sure your present working directory is the tests directory (where you
found this file) and that the Sag src directory is above it (../src/).

You should always run `./bootstrap.php` first, as it will check to make sure
you have all the required binaries, that the test database doesn't already
exist, and that your user permissions are correct.

`phpunit .` will simply run all the tests

`phpunit --coverage-html=./coverage/ .` will run all the tests and re-generate
the coverage reports
Something went wrong with that request. Please try again.