2015-12-29 18:50:01 +03:00
|
|
|
# phpunit
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
> PHPUnit command-line test runner.
|
2019-05-29 16:53:50 +03:00
|
|
|
> More information: <https://phpunit.de>.
|
2015-12-29 18:50:01 +03:00
|
|
|
|
2017-05-12 12:29:18 +03:00
|
|
|
- Run tests in the current directory. Note: Expects you to have a 'phpunit.xml':
|
2015-12-29 18:50:01 +03:00
|
|
|
|
|
|
|
`phpunit`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Run tests in a specific file:
|
2015-12-29 18:50:01 +03:00
|
|
|
|
|
|
|
`phpunit {{path/to/TestFile.php}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Run tests annotated with the given group:
|
2015-12-29 18:50:01 +03:00
|
|
|
|
|
|
|
`phpunit --group {{name}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Run tests and generate a coverage report in HTML:
|
2015-12-29 18:50:01 +03:00
|
|
|
|
|
|
|
`phpunit --coverage-html {{directory}}`
|