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