Unit tests

The core framework functionality is covered by unit tests written for the PHPUnit test framework.

The tests are located in yg_framework/lib/test/. They assume PHPUnit is installed in the PHP path and can be run from the command line.

Running tests

From the yg_framework/lib/test/ run:
phpunit viewTest

There is a second set of tests that check the behaviour of functions whose behaviour is dependent on the value of contants, these can be accessed by running:
phpunit viewTestAlternate


View code coverage reports generated by the last build.