Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 553 Bytes

UNIT_TESTS.md

File metadata and controls

18 lines (12 loc) · 553 Bytes

Unit Tests

PHPUnit

We use PHPUnit for unit tests. Test files should be saved in the tests folder. Test file names should be in Pascal case suffixed with Test. The class name of the test should match the file name.

To run all unit tests, run this command in the root directory of this application:

bash run_tests_php.sh

If you want to automate running unit tests as part of the Git commit process, you can add a pre-push hook to your environment:

cp bin/pre-push .git/hooks/pre-push
chmod 700 .git/hooks/pre-push