Unit tests

Unit tests are written with the PHPUnitarrow-up-right framework.

You can run all tests with:

./vendor/bin/phing unit-tests

Location

Tests are placed in the test directory, within additional subdirectories conform PSR-4arrow-up-right.

Naming conventions

Tests are named after the class they are testing, with the suffix Test.

Test methods use snake casearrow-up-right naming, as opposed to the rest of the code base. This makes it easier to generate meaningful, human readable descriptions from the test cases with PHPUnit's TestDox featurearrow-up-right.

More info

Consult the PHPUnit manual for more information.

Last updated

Was this helpful?