5 $_SERVER['argv'][1] = '--no-configuration';
6 $_SERVER['argv'][2] = '--help';
8 require __DIR__ . '/../bootstrap.php';
9 PHPUnit_TextUI_Command::main();
12 PHPUnit %s by Sebastian Bergmann and contributors.
14 Usage: phpunit [options] UnitTest [UnitTest.php]
15 phpunit [options] <directory>
17 Code Coverage Options:
19 --coverage-clover <file> Generate code coverage report in Clover XML format.
20 --coverage-crap4j <file> Generate code coverage report in Crap4J XML format.
21 --coverage-html <dir> Generate code coverage report in HTML format.
22 --coverage-php <file> Export PHP_CodeCoverage object to file.
23 --coverage-text=<file> Generate code coverage report in text format.
24 Default: Standard output.
25 --coverage-xml <dir> Generate code coverage report in PHPUnit XML format.
29 --log-junit <file> Log test execution in JUnit XML format to file.
30 --log-tap <file> Log test execution in TAP format to file.
31 --log-json <file> Log test execution in JSON format.
32 --testdox-html <file> Write agile documentation in HTML format to file.
33 --testdox-text <file> Write agile documentation in Text format to file.
35 Test Selection Options:
37 --filter <pattern> Filter which tests to run.
38 --testsuite <name> Filter which testsuite to run.
39 --group ... Only runs tests from the specified group(s).
40 --exclude-group ... Exclude tests from the specified group(s).
41 --list-groups List available test groups.
42 --test-suffix ... Only search for test in files with specified
43 suffix(es). Default: Test.php,.phpt
45 Test Execution Options:
47 --report-useless-tests Be strict about tests that do not test anything.
48 --strict-coverage Be strict about unintentionally covered code.
49 --strict-global-state Be strict about changes to global state
50 --disallow-test-output Be strict about output during tests.
51 --enforce-time-limit Enforce time limit based on test size.
52 --disallow-todo-tests Disallow @todo-annotated tests.
54 --process-isolation Run each test in a separate PHP process.
55 --no-globals-backup Do not backup and restore $GLOBALS for each test.
56 --static-backup Backup and restore static attributes for each test.
58 --colors=<flag> Use colors in output ("never", "auto" or "always").
59 --columns <n> Number of columns to use for progress output.
60 --columns max Use maximum number of columns for progress output.
61 --stderr Write to STDERR instead of STDOUT.
62 --stop-on-error Stop execution upon first error.
63 --stop-on-failure Stop execution upon first error or failure.
64 --stop-on-risky Stop execution upon first risky test.
65 --stop-on-skipped Stop execution upon first skipped test.
66 --stop-on-incomplete Stop execution upon first incomplete test.
67 -v|--verbose Output more verbose information.
68 --debug Display debugging information during test execution.
70 --loader <loader> TestSuiteLoader implementation to use.
71 --repeat <times> Runs the test(s) repeatedly.
72 --tap Report test execution progress in TAP format.
73 --testdox Report test execution progress in TestDox format.
74 --printer <printer> TestListener implementation to use.
76 Configuration Options:
78 --bootstrap <file> A "bootstrap" PHP file that is run before the tests.
79 -c|--configuration <file> Read configuration from XML file.
80 --no-configuration Ignore default configuration file (phpunit.xml).
81 --no-coverage Ignore code coverage configuration.
82 --include-path <path(s)> Prepend PHP's include_path with given path(s).
83 -d key[=value] Sets a php.ini value.
85 Miscellaneous Options:
87 -h|--help Prints this usage information.
88 --version Prints the version and exits.