simple example of how to use unit tests with phpunit.
- clone this repository and run composer
$ git clone https://github.com/p2sousa/phpunit.git
$ composer update
- run tests in folder /tests/
$ vendor/bin/phpunit
- run tests unit
$ vendor/bin/phpunit tests/Unit
- run tests integration
$ vendor/bin/phpunit tests/Integration