Skip to content

Commit fd7c8e2

Browse files
committed
docs: add :lines: 2-
1 parent 3438fe3 commit fd7c8e2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

user_guide_src/source/testing/feature.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ To do this, you use the ``call()`` method.
4141
included for consistency.
4242

4343
.. literalinclude:: feature/002.php
44+
:lines: 2-
4445

4546
Shorthand Methods
4647
-----------------
4748

4849
Shorthand methods for each of the HTTP verbs exist to ease typing and make things clearer:
4950

5051
.. literalinclude:: feature/003.php
52+
:lines: 2-
5153

5254
Setting Different Routes
5355
------------------------
@@ -56,6 +58,7 @@ You can use a custom collection of routes by passing an array of "routes" into t
5658
override any existing routes in the system:
5759

5860
.. literalinclude:: feature/004.php
61+
:lines: 2-
5962

6063
Each of the "routes" is a 3 element array containing the HTTP verb (or "add" for all),
6164
the URI to match, and the routing destination.
@@ -68,6 +71,7 @@ of key/value pairs that should exist within the ``$_SESSION`` variable when this
6871
that the current values of ``$_SESSION`` should be used. This is handy for testing authentication and more.
6972

7073
.. literalinclude:: feature/005.php
74+
:lines: 2-
7175

7276
Setting Headers
7377
---------------
@@ -76,6 +80,7 @@ You can set header values with the ``withHeaders()`` method. This takes an array
7680
passed as a header into the call:
7781

7882
.. literalinclude:: feature/006.php
83+
:lines: 2-
7984

8085
Bypassing Events
8186
----------------
@@ -84,6 +89,7 @@ Events are handy to use in your application, but can be problematic during testi
8489
to send out emails. You can tell the system to skip any event handling with the ``skipEvents()`` method:
8590

8691
.. literalinclude:: feature/007.php
92+
:lines: 2-
8793

8894
.. _feature-formatting-the-request:
8995

@@ -100,6 +106,7 @@ body of the request in the given format.
100106
This will also set the `Content-Type` header for your request accordingly.
101107

102108
.. literalinclude:: feature/008.php
109+
:lines: 2-
103110

104111
.. _feature-setting-the-body:
105112

0 commit comments

Comments
 (0)