Backend Tools

Install

Install the tools described in this section:

npm install
composer install

Lint

Validate your PHP code for consistence:

grunt phpcpd
grunt phpcs
grunt phpstan
grunt phpmd

Test

Run the PHP testing suite:

grunt phpunit

Create a coverage report:

grunt phpunit --coverage-html {directory}

Run the PHP testing suite in parallel:

grunt phpunit-parallel

Run the PHP testing suite against your MSSQL database:

DB_URL=mssql://sa:test@127.0.0.1/test grunt phpunit

Run the PHP testing suite against your MySQL database:

DB_URL=mysql://root:test@127.0.0.1/test grunt phpunit

Run the PHP testing suite against your PostgreSQL database:

DB_URL=postgres://postgres:test@127.0.0.1/test grunt phpunit
Edit on GitHub