Skip to content

Commit 2713eba

Browse files
committed
Merge pull request sebastianbergmann#103 from karptonite/add_cli_switches
Add missing CLI switches to 3.7 docs.
2 parents 8f57264 + f2783bb commit 2713eba

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

src/3.7/en/textui.xml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ OK (2 tests, 2 assertions)</screen>
9797
</para>
9898

9999
<screen><userinput>phpunit --help</userinput>
100-
<![CDATA[PHPUnit 3.7.0 by Sebastian Bergmann.
100+
<![CDATA[PHPUnit 3.7.13 by Sebastian Bergmann.
101101
102102
Usage: phpunit [switches] UnitTest [UnitTest.php]
103103
phpunit [switches] <directory>
@@ -116,9 +116,12 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
116116
--testdox-text <file> Write agile documentation in Text format to file.
117117
118118
--filter <pattern> Filter which tests to run.
119+
--testsuite <pattern> Filter which testsuite to run.
119120
--group ... Only runs tests from the specified group(s).
120121
--exclude-group ... Exclude tests from the specified group(s).
121122
--list-groups List available test groups.
123+
--test-suffix ... Only search for test in files with specified
124+
suffix(es). Default: Test.php,.phpt
122125
123126
--loader <loader> TestSuiteLoader implementation to use.
124127
--printer <printer> TestSuiteListener implementation to use.
@@ -135,7 +138,7 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
135138
--stop-on-incomplete Stop execution upon first incomplete test.
136139
--strict Run tests in strict mode.
137140
-v|--verbose Output more verbose information.
138-
--debug Display debbuging information during test execution.
141+
--debug Display debugging information during test execution.
139142
140143
--process-isolation Run each test in a separate PHP process.
141144
--no-globals-backup Do not backup and restore $GLOBALS for each test.
@@ -303,6 +306,15 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
303306
</listitem>
304307
</varlistentry>
305308

309+
<varlistentry>
310+
<term><literal>--testsuite</literal></term>
311+
<listitem>
312+
<para>
313+
Only runs the test suite whose name matches the given pattern.
314+
</para>
315+
</listitem>
316+
</varlistentry>
317+
306318
<varlistentry>
307319
<indexterm><primary>Test Groups</primary></indexterm>
308320
<indexterm><primary>Annotation</primary></indexterm>
@@ -347,6 +359,15 @@ Usage: phpunit [switches] UnitTest [UnitTest.php]
347359
</listitem>
348360
</varlistentry>
349361

362+
<varlistentry>
363+
<term><literal>--test-suffix</literal></term>
364+
<listitem>
365+
<para>
366+
Only search for test files with specified suffix(es).
367+
</para>
368+
</listitem>
369+
</varlistentry>
370+
350371
<varlistentry>
351372
<indexterm><primary>PHPUnit_Runner_TestSuiteLoader</primary></indexterm>
352373
<term><literal>--loader</literal></term>

0 commit comments

Comments
 (0)