Developers

PHPUnit

Commentics comes with a suite of tests, created in PHPUnit, to help ensure that everything works.

This is useful if you've made any changes as you'll be more confident that nothing has broken.

To run PHPUnit, first cd (change directory) to the folder where the phpunit.xml file is present. If you don't see this file, you most likely don't have the cloned repository from GitHub. Then run this command:

php vendor/bin/phpunit

You should see output similar to this:

PHPUnit