Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 467 Bytes

TESTS.md

File metadata and controls

29 lines (19 loc) · 467 Bytes

Running tests

PHPStan

Go to BotTracker plugin dir:

composer install

Go to Matomo root (/var/www/html usually) run:

/var/www/html/plugins/BotTracker/vendor/bin/phpstan analyze -c /var/www/html/plugins/BotTracker/tests/phpstan.neon --level=1 /var/www/html/plugins/BotTracker

PHPCS

Go to BotTracker plugin dir:

composer install

Run PHP Codesniffer

vendor/bin/phpcs --ignore=*/vendor/*  --standard=PSR2 .