mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
Merge pull request #461 from mario-deluna/patch-1
Added common/phpunit.md page and examples.
This commit is contained in:
commit
61f960a32a
1 changed files with 19 additions and 0 deletions
19
pages/common/phpunit.md
Normal file
19
pages/common/phpunit.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue