5 $_SERVER['argv'][1] = '--help';
7 require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
8 PHPUnit_TextUI_Command::main();
11 PHPUnit %s by Sebastian Bergmann.
13 Usage: phpunit [switches] UnitTest [UnitTest.php]
14 phpunit [switches] <directory>
16 --log-graphviz <file> Log test execution in GraphViz markup.
17 --log-json <file> Log test execution in JSON format.
18 --log-tap <file> Log test execution in TAP format to file.
19 --log-xml <file> Log test execution in XML format to file.
20 --log-metrics <file> Write metrics report in XML format.
21 --log-pmd <file> Write violations report in PMD XML format.
23 --coverage-html <dir> Generate code coverage report in HTML format.
24 --coverage-clover <file> Write code coverage data in Clover XML format.
25 --coverage-source <dir> Write code coverage / source data in XML format.
27 --test-db-dsn <dsn> DSN for the test database.
28 --test-db-log-rev <rev> Revision information for database logging.
29 --test-db-prefix ... Prefix that should be stripped from filenames.
30 --test-db-log-info ... Additional information for database logging.
32 --story-html <file> Write Story/BDD results in HTML format to file.
33 --story-text <file> Write Story/BDD results in Text format to file.
35 --testdox-html <file> Write agile documentation in HTML format to file.
36 --testdox-text <file> Write agile documentation in Text format to file.
38 --filter <pattern> Filter which tests 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.
43 --loader <loader> TestSuiteLoader implementation to use.
44 --repeat <times> Runs the test(s) repeatedly.
46 --story Report test execution progress in Story/BDD format.
47 --tap Report test execution progress in TAP format.
48 --testdox Report test execution progress in TestDox format.
50 --no-syntax-check Disable syntax check of test source files.
51 --stop-on-failure Stop execution upon first error or failure.
52 --colors Use colors in output.
53 --verbose Output more verbose information.
54 --wait Waits for a keystroke after each test.
56 --skeleton-class Generate Unit class for UnitTest in UnitTest.php.
57 --skeleton-test Generate UnitTest class for Unit in Unit.php.
59 --help Prints this usage information.
60 --version Prints the version and exits.
62 --bootstrap <file> A "bootstrap" PHP file that is run before the tests.
63 --configuration <file> Read configuration from XML file.
64 -d key[=value] Sets a php.ini value.