To run tests:
-
Make sure you have a recent version of PHPUnit installed; 4.8.0 minimally.
-
Enter the
tests/
subdirectory. -
Execute PHPUnit
$ ../vendor/bin/phpunit
-
You may also provide the
--coverage-html
switch;$ ../vendor/bin/phpunit --coverage-html ./_report
This will generate code-coverage report witch can be displayed in a browser by opening
tests/_report/index.html
file