PSR-2 PHP_CodeSniffer Config

# phpcs.xml, this file must be under project root folder.

 

Travis CI for PHPUnit and PHP_CodeSniffer

# .travis.yml, this file must be under project root folder.

 

PHPUnit Boilerplate

Of course first  phpunit/phpunit to be installed. I think, local installation much better.

# phpunit.xml

# ExampleTest.php, this file must be under tests folder. (root/tests/ExampleTest.php)

# Run on Command prompt.

# Example Output