PHP

Travis CI for PHPUnit and PHP_CodeSniffer

# .travis.yml, this file must be under project root folder. language: php php: – 7.2 before_script: – composer self-update – composer install –prefer-source –no-interaction –dev script: – phpunit – ./vendor/bin/phpcs […]

PHP

PHPUnit Boilerplate

Of course first  phpunit/phpunit to be installed. I think, local installation much better. composer require –dev phpunit/phpunit ^7 # phpunit.xml <?xml version=”1.0″ encoding=”UTF-8″?> <phpunit backupGlobals=”false” backupStaticAttributes=”false” bootstrap=”vendor/autoload.php” colors=”true” convertErrorsToExceptions=”true” convertNoticesToExceptions=”true” […]