Explorar el Código

Added common/phpunit.md page and examples.

Mario Döring hace 9 años
padre
commit
735588e0a1
Se han modificado 1 ficheros con 19 adiciones y 0 borrados
  1. 19 0
      pages/common/phpunit.md

+ 19 - 0
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}}`