Skip to content

Commit ca9e5b9

Browse files
sebastianheuersebastianbergmann
authored andcommitted
fix #4 by adding the missing sample code blocks
1 parent 645e58d commit ca9e5b9

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/textui.rst

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,18 +301,36 @@ the following code:
301301
See :numref:`textui.examples.filter-patterns` for examples
302302
of valid filter patterns.
303303
304-
.. code-block:: php
304+
.. code-block:: shell
305305
:caption: Filter pattern examples
306306
:name: textui.examples.filter-patterns
307307
308+
--filter 'TestNamespace\\TestCaseClass::testMethod'
309+
--filter 'TestNamespace\\TestCaseClass'
310+
--filter TestNamespace
311+
--filter TestCaseClase
312+
--filter testMethod
313+
--filter '/::testMethod .*"my named data"/'
314+
--filter '/::testMethod .*#5$/'
315+
--filter '/::testMethod .*#(5|6|7)$/'
316+
308317
See :numref:`textui.examples.filter-shortcuts` for some
309318
additional shortcuts that are available for matching data
310319
providers.
311320
312-
.. code-block:: php
321+
.. code-block:: shell
313322
:caption: Filter shortcuts
314323
:name: textui.examples.filter-shortcuts
315324
325+
--filter 'testMethod#2'
326+
--filter 'testMethod#2-4'
327+
--filter '#2'
328+
--filter '#2-4'
329+
--filter 'testMethod@my named data'
330+
--filter 'testMethod@my.*data'
331+
--filter '@my named data'
332+
--filter '@my.*data'
333+
316334
``--testsuite``
317335
318336
Only runs the test suite whose name matches the given pattern.

0 commit comments

Comments
 (0)