1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 01:18:00 +01:00
tldr/pages/common/phpunit.md
2016-01-08 09:38:59 +01:00

19 lines
376 B
Markdown

# phpunit
> PHPUnit command-line test runner.
- Run tests in the current direcotry. Note: Expects you to have a 'phpunit.xml':
`phpunit`
- 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 {{directory}}`