Backend Tools

Install

Install the tools described in this section:

npm install
composer install

Lint

Validate your PHP code for consistence:

grunt phpcs
grunt phpcpd
grunt phpstan

Test

Run the PHP testing suite:

grunt phpunit

Run the PHP testing suite in parallel:

grunt phpunit-parallel

Run the PHP testing suite against your MSSQL database:

npm run phpunit-mssql

Run the PHP testing suite against your MySQL database:

npm run phpunit-mysql

Run the PHP testing suite against your PostgreSQL database:

npm run phpunit-pgsql

Create a coverage report:

grunt phpunit --coverage-html {directory}

Benchmark

Run the PHP benchmarking suite:

grunt phpbench
Edit on GitHub