PHP

PSR-2 PHP_CodeSniffer Config

Visits: 132# phpcs.xml, this file must be under project root folder. <?xml version=”1.0″?> <ruleset name=”Basic Project Coding Standards”> <rule ref=”PSR2″ /> <!– extra rules for the laugh 😉 LOL –> […]

PHP

Travis CI for PHPUnit and PHP_CodeSniffer

Visits: 362# .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 – […]

PHP

PHPUnit Boilerplate

Visits: 135Of 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” […]