Tests are very important to your work performance.
If you don’t know phpunit, let’s go to http://phpunit.de and figure out your facilities, and always use it.
Do your unit tests and automatize them, with gulp. If you still don’t use gulp, go to gulpjs.com and use to automatize your tests and css, sass, js, coffe….
To install phpunit use:
curl https://phar.phpunit.de/phpunit.phar -L -o phpunit.phar
chmod +x phpunit.phar
mv phpunit.phar /usr/local/bin/phpunit
Now you can use phpunit globally.
In your root folder, create phpunit.xml, configure and use phpunit.