mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 11:46:06 +00:00
Update cheatsheets
This commit is contained in:
25
phpunit
Normal file
25
phpunit
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user