commands.sh

phpunit

all

PHPUnit test runner.

More info →

Examples (4)

Run tests in the current directory. Note: Expects you to have a 'phpunit.xml'

Run tests in a specific file

phpunit path/to/TestFile.php

Run tests annotated with the given group

phpunit --group name

Run tests and generate a coverage report in HTML

phpunit --coverage-html path/to/directory
made by @shridhargupta | data from tldr-pages