mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-01 15:51:29 +08:00
d1fa35edf6
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
21 lines
413 B
Markdown
21 lines
413 B
Markdown
# phpunit
|
|
|
|
> PHPUnit 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}}`
|