1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:02:10 +02:00
tldr/pages/common/phpunit.md
2022-12-04 19:12:49 +10:00

20 lines
426 B
Markdown

# phpunit
> PHPUnit command-line test runner.
> More information: <https://phpunit.de>.
- Run tests in the current directory. 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 {{path/to/directory}}`