This offers a set of easy testing tools useful for generating unit testing in PHPUnit.
- Easy installation
- Simple and efficient classes
Via Composer
composer require floor9design/testing-tools
These are a simple classes, so minimal setup is required. In a composer/PSR compliant system, this should be automatically included. If your system works another way, this can be manually included.
Note that they are namespaced, so should not clash with your other classes/methods.
To run the tests:
./vendor/phpunit/phpunit/phpunit
Documentation and coverage can be generated as follows:
./vendor/phpunit/phpunit/phpunit --coverage-html docs/tests/
A changelog is generated here: