phpunit

phpunit

TLDR

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

$ phpunit
copy

Run tests in a specific file

$ phpunit [path/to/TestFile.php]
copy

Run tests annotated with the given group

$ phpunit --group [name]
copy

Run tests and generate a coverage report in HTML

$ phpunit --coverage-html [directory]
copy

Copied to clipboard
Earn up to $40 for learning about crypto currencies