1--TEST--
2phpunit --help
3--FILE--
4<?php
5$_SERVER['argv'][1] = '--no-configuration';
6$_SERVER['argv'][2] = '--help';
7
8require __DIR__ . '/../bootstrap.php';
9PHPUnit_TextUI_Command::main();
10--EXPECTF--
11PHPUnit %s by Sebastian Bergmann and contributors.
12
13Usage: phpunit [options] UnitTest [UnitTest.php]
14       phpunit [options] <directory>
15
16Code Coverage Options:
17
18  --coverage-clover <file>  Generate code coverage report in Clover XML format.
19  --coverage-crap4j <file>  Generate code coverage report in Crap4J XML format.
20  --coverage-html <dir>     Generate code coverage report in HTML format.
21  --coverage-php <file>     Export PHP_CodeCoverage object to file.
22  --coverage-text=<file>    Generate code coverage report in text format.
23                            Default: Standard output.
24  --coverage-xml <dir>      Generate code coverage report in PHPUnit XML format.
25  --whitelist <dir>         Whitelist <dir> for code coverage analysis.
26  --disable-coverage-ignore Disable annotations for ignoring code coverage.
27
28Logging Options:
29
30  --log-junit <file>        Log test execution in JUnit XML format to file.
31  --log-teamcity <file>     Log test execution in TeamCity format to file.
32  --testdox-html <file>     Write agile documentation in HTML format to file.
33  --testdox-text <file>     Write agile documentation in Text format to file.
34  --testdox-xml <file>      Write agile documentation in XML format to file.
35  --reverse-list            Print defects in reverse order
36
37Test Selection Options:
38
39  --filter <pattern>        Filter which tests to run.
40  --testsuite <name>        Filter which testsuite to run.
41  --group ...               Only runs tests from the specified group(s).
42  --exclude-group ...       Exclude tests from the specified group(s).
43  --list-groups             List available test groups.
44  --list-suites             List available test suites.
45  --test-suffix ...         Only search for test in files with specified
46                            suffix(es). Default: Test.php,.phpt
47
48Test Execution Options:
49
50  --report-useless-tests    Be strict about tests that do not test anything.
51  --strict-coverage         Be strict about @covers annotation usage.
52  --strict-global-state     Be strict about changes to global state
53  --disallow-test-output    Be strict about output during tests.
54  --disallow-resource-usage Be strict about resource usage during small tests.
55  --enforce-time-limit      Enforce time limit based on test size.
56  --disallow-todo-tests     Disallow @todo-annotated tests.
57
58  --process-isolation       Run each test in a separate PHP process.
59  --no-globals-backup       Do not backup and restore $GLOBALS for each test.
60  --static-backup           Backup and restore static attributes for each test.
61
62  --colors=<flag>           Use colors in output ("never", "auto" or "always").
63  --columns <n>             Number of columns to use for progress output.
64  --columns max             Use maximum number of columns for progress output.
65  --stderr                  Write to STDERR instead of STDOUT.
66  --stop-on-error           Stop execution upon first error.
67  --stop-on-failure         Stop execution upon first error or failure.
68  --stop-on-warning         Stop execution upon first warning.
69  --stop-on-risky           Stop execution upon first risky test.
70  --stop-on-skipped         Stop execution upon first skipped test.
71  --stop-on-incomplete      Stop execution upon first incomplete test.
72  --fail-on-warning         Treat tests with warnings as failures.
73  --fail-on-risky           Treat risky tests as failures.
74  -v|--verbose              Output more verbose information.
75  --debug                   Display debugging information during test execution.
76
77  --loader <loader>         TestSuiteLoader implementation to use.
78  --repeat <times>          Runs the test(s) repeatedly.
79  --teamcity                Report test execution progress in TeamCity format.
80  --testdox                 Report test execution progress in TestDox format.
81  --testdox-group           Only include tests from the specified group(s).
82  --testdox-exclude-group   Exclude tests from the specified group(s).
83  --printer <printer>       TestListener implementation to use.
84
85Configuration Options:
86
87  --bootstrap <file>        A "bootstrap" PHP file that is run before the tests.
88  -c|--configuration <file> Read configuration from XML file.
89  --no-configuration        Ignore default configuration file (phpunit.xml).
90  --no-coverage             Ignore code coverage configuration.
91  --no-extensions           Do not load PHPUnit extensions.
92  --include-path <path(s)>  Prepend PHP's include_path with given path(s).
93  -d key[=value]            Sets a php.ini value.
94  --generate-configuration  Generate configuration file with suggested settings.
95
96Miscellaneous Options:
97
98  -h|--help                 Prints this usage information.
99  --version                 Prints the version and exits.
100  --atleast-version <min>   Checks that version is greater than min and exits.
101