1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/phpunit.md

21 lines
426 B
Markdown
Raw Normal View History

# phpunit
> PHPUnit command-line test runner.
2019-05-29 14:53:50 +01:00
> More information: <https://phpunit.de>.
2017-05-12 11:29:18 +02:00
- 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:
2022-12-04 10:12:49 +01:00
`phpunit --coverage-html {{path/to/directory}}`