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
free 100$ digital ocean credit