]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Tests/TextUI/help.phpt
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Tests / TextUI / help.phpt
1 --TEST--
2 phpunit
3 --FILE--
4 <?php
5 require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
6 PHPUnit_TextUI_Command::main();
7 ?>
8 --EXPECTF--
9 PHPUnit %s by Sebastian Bergmann.
10
11 Usage: phpunit [switches] UnitTest [UnitTest.php]
12        phpunit [switches] <directory>
13
14   --log-graphviz <file>    Log test execution in GraphViz markup.
15   --log-json <file>        Log test execution in JSON format.
16   --log-tap <file>         Log test execution in TAP format to file.
17   --log-xml <file>         Log test execution in XML format to file.
18   --log-metrics <file>     Write metrics report in XML format.
19   --log-pmd <file>         Write violations report in PMD XML format.
20
21   --coverage-html <dir>    Generate code coverage report in HTML format.
22   --coverage-clover <file> Write code coverage data in Clover XML format.
23   --coverage-source <dir>  Write code coverage / source data in XML format.
24
25   --test-db-dsn <dsn>      DSN for the test database.
26   --test-db-log-rev <rev>  Revision information for database logging.
27   --test-db-prefix ...     Prefix that should be stripped from filenames.
28   --test-db-log-info ...   Additional information for database logging.
29
30   --story-html <file>      Write Story/BDD results in HTML format to file.
31   --story-text <file>      Write Story/BDD results in Text format to file.
32
33   --testdox-html <file>    Write agile documentation in HTML format to file.
34   --testdox-text <file>    Write agile documentation in Text format to file.
35
36   --filter <pattern>       Filter which tests to run.
37   --group ...              Only runs tests from the specified group(s).
38   --exclude-group ...      Exclude tests from the specified group(s).
39   --list-groups            List available test groups.
40
41   --loader <loader>        TestSuiteLoader implementation to use.
42   --repeat <times>         Runs the test(s) repeatedly.
43
44   --story                  Report test execution progress in Story/BDD format.
45   --tap                    Report test execution progress in TAP format.
46   --testdox                Report test execution progress in TestDox format.
47
48   --no-syntax-check        Disable syntax check of test source files.
49   --stop-on-failure        Stop execution upon first error or failure.
50   --colors                 Use colors in output.
51   --verbose                Output more verbose information.
52   --wait                   Waits for a keystroke after each test.
53
54   --skeleton-class         Generate Unit class for UnitTest in UnitTest.php.
55   --skeleton-test          Generate UnitTest class for Unit in Unit.php.
56
57   --help                   Prints this usage information.
58   --version                Prints the version and exits.
59
60   --bootstrap <file>       A "bootstrap" PHP file that is run before the tests.
61   --configuration <file>   Read configuration from XML file.
62   -d key[=value]           Sets a php.ini value.
63