PHPunit.
This repository has some PHPunit tests embedded.
U simply can run it with the terminal commando phpunit if phpunit is gobally installed.
Installing PHPunit.
They distribute a PHP Archieve (PHAR) that has all required (as well as some optional) dependencies of PHPunit bundled in a single file.
$ wget https://phar.phpunit.de/phpunit.phar
$ chmod +x phpunit.phar
$ mv phpunit.phar /usr/local/bin/phpunit
You can also immediately use the PHAR after you have download it, of course:
php phpunit.phar
Testing groups.
You can also test everything with specif groups.
Example command:
$ php phpunit.phar
$ phpunit --group {group name}
Groups and ther description.
| Group: | Description: |
|---|---|
all |
Run all the tests. |
rental |
Run all the tests for the rental system. |
backend |
Run all the tests for the backend system. |
database |
Run all the database tests. |