From 735588e0a111e4097f2912dca407410005cbee99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20D=C3=B6ring?= Date: Tue, 29 Dec 2015 16:50:01 +0100 Subject: [PATCH] Added common/phpunit.md page and examples. --- pages/common/phpunit.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/phpunit.md diff --git a/pages/common/phpunit.md b/pages/common/phpunit.md new file mode 100644 index 000000000..d4f7b4952 --- /dev/null +++ b/pages/common/phpunit.md @@ -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}}`