1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.2.
.TH PHPUNIT "1" "September 2014" "PHPUnit 4.2.6 by Sebastian Bergmann." "User Commands"
.SH NAME
PHPUnit \- PHPUnit command line interface
.SH SYNOPSIS
.B phpunit
[\fI\,options\/\fR] \fI\,UnitTest \/\fR[\fI\,UnitTest.php\/\fR]
.SH DESCRIPTION
PHPUnit 4.2.6 by Sebastian Bergmann.
.IP
phpunit [options] <directory>
.PP
Code Coverage Options:
.TP
\fB\-\-coverage\-clover\fR <file>
Generate code coverage report in Clover XML format.
.TP
\fB\-\-coverage\-crap4j\fR <file>
Generate code coverage report in Crap4J XML format.
.TP
\fB\-\-coverage\-html\fR <dir>
Generate code coverage report in HTML format.
.TP
\fB\-\-coverage\-php\fR <file>
Export PHP_CodeCoverage object to file.
.TP
\fB\-\-coverage\-text=\fR<file>
Generate code coverage report in text format.
Default: Standard output.
.TP
\fB\-\-coverage\-xml\fR <dir>
Generate code coverage report in PHPUnit XML format.
.PP
Logging Options:
.TP
\fB\-\-log\-junit\fR <file>
Log test execution in JUnit XML format to file.
.TP
\fB\-\-log\-tap\fR <file>
Log test execution in TAP format to file.
.TP
\fB\-\-log\-json\fR <file>
Log test execution in JSON format.
.TP
\fB\-\-testdox\-html\fR <file>
Write agile documentation in HTML format to file.
.TP
\fB\-\-testdox\-text\fR <file>
Write agile documentation in Text format to file.
.PP
Test Selection Options:
.TP
\fB\-\-filter\fR <pattern>
Filter which tests to run.
.TP
\fB\-\-testsuite\fR <pattern>
Filter which testsuite to run.
.TP
\fB\-\-group\fR ...
Only runs tests from the specified group(s).
.TP
\fB\-\-exclude\-group\fR ...
Exclude tests from the specified group(s).
.TP
\fB\-\-list\-groups\fR
List available test groups.
.TP
\fB\-\-test\-suffix\fR ...
Only search for test in files with specified
suffix(es). Default: Test.php,.phpt
.PP
Test Execution Options:
.TP
\fB\-\-report\-useless\-tests\fR
Be strict about tests that do not test anything.
.TP
\fB\-\-strict\-coverage\fR
Be strict about unintentionally covered code.
.TP
\fB\-\-disallow\-test\-output\fR
Be strict about output during tests.
.TP
\fB\-\-enforce\-time\-limit\fR
Enforce time limit based on test size.
.TP
\fB\-\-disallow\-todo\-tests\fR
Disallow @todo\-annotated tests.
.TP
\fB\-\-strict\fR
Run tests in strict mode (enables all of the above).
.TP
\fB\-\-process\-isolation\fR
Run each test in a separate PHP process.
.TP
\fB\-\-no\-globals\-backup\fR
Do not backup and restore $GLOBALS for each test.
.TP
\fB\-\-static\-backup\fR
Backup and restore static attributes for each test.
.TP
\fB\-\-colors\fR
Use colors in output.
.TP
\fB\-\-stderr\fR
Write to STDERR instead of STDOUT.
.TP
\fB\-\-stop\-on\-error\fR
Stop execution upon first error.
.TP
\fB\-\-stop\-on\-failure\fR
Stop execution upon first error or failure.
.TP
\fB\-\-stop\-on\-risky\fR
Stop execution upon first risky test.
.TP
\fB\-\-stop\-on\-skipped\fR
Stop execution upon first skipped test.
.TP
\fB\-\-stop\-on\-incomplete\fR
Stop execution upon first incomplete test.
.TP
\fB\-v\fR|\-\-verbose
Output more verbose information.
.TP
\fB\-\-debug\fR
Display debugging information during test execution.
.TP
\fB\-\-loader\fR <loader>
TestSuiteLoader implementation to use.
.TP
\fB\-\-repeat\fR <times>
Runs the test(s) repeatedly.
.TP
\fB\-\-tap\fR
Report test execution progress in TAP format.
.TP
\fB\-\-testdox\fR
Report test execution progress in TestDox format.
.TP
\fB\-\-printer\fR <printer>
TestListener implementation to use.
.PP
Configuration Options:
.TP
\fB\-\-bootstrap\fR <file>
A "bootstrap" PHP file that is run before the tests.
.HP
\fB\-c\fR|\-\-configuration <file> Read configuration from XML file.
.TP
\fB\-\-no\-configuration\fR
Ignore default configuration file (phpunit.xml).
.TP
\fB\-\-include\-path\fR <path(s)>
Prepend PHP's include_path with given path(s).
.TP
\fB\-d\fR key[=value]
Sets a php.ini value.
.PP
Miscellaneous Options:
.TP
\fB\-h\fR|\-\-help
Prints this usage information.
.TP
\fB\-\-version\fR
Prints the version and exits.
|