@@ -14,13 +14,13 @@ create your own directly using any ``ResponseInterface``:
1414 :depth: 2
1515
1616Testing the Response
17- ====================
17+ ********************
1818
1919Whether you have received a ``TestResponse `` as a result of your tests or created one yourself,
2020there are a number of new assertions that you can use in your tests.
2121
2222Accessing Request/Response
23- --------------------------
23+ ==========================
2424
2525**request() **
2626
@@ -35,7 +35,7 @@ This allows you direct access to the response object:
3535.. literalinclude :: response/003.php
3636
3737Checking Response Status
38- ------------------------
38+ ========================
3939
4040**isOK() **
4141
@@ -82,7 +82,7 @@ Asserts that the HTTP status code returned matches $code.
8282.. literalinclude :: response/010.php
8383
8484Session Assertions
85- ------------------
85+ ==================
8686
8787**assertSessionHas(string $key, $value = null) **
8888
@@ -98,7 +98,7 @@ Asserts that the resulting session does not include the specified $key.
9898.. literalinclude :: response/012.php
9999
100100Header Assertions
101- -----------------
101+ =================
102102
103103**assertHeader(string $key, $value = null) **
104104
@@ -114,7 +114,7 @@ Asserts that a header name **$key** does not exist in the response.
114114.. literalinclude :: response/014.php
115115
116116Cookie Assertions
117- -----------------
117+ =================
118118
119119**assertCookie(string $key, $value = null, string $prefix = '') **
120120
@@ -137,7 +137,7 @@ in as the second parameter.
137137.. literalinclude :: response/017.php
138138
139139DOM Helpers
140- -----------
140+ ===========
141141
142142The response you get back contains a number of helper methods to inspect the HTML output within the response. These
143143are useful for using within assertions in your tests.
@@ -169,7 +169,7 @@ Finally, you can check if a checkbox exists and is checked with the **seeCheckbo
169169.. literalinclude :: response/023.php
170170
171171DOM Assertions
172- --------------
172+ ==============
173173
174174You can perform tests to see if specific elements/text/etc exist with the body of the response with the following
175175assertions.
@@ -213,7 +213,7 @@ Asserts that an input tag exists with the name and value:
213213.. literalinclude :: response/029.php
214214
215215Working With JSON
216- -----------------
216+ =================
217217
218218Responses will frequently contain JSON responses, especially when working with API methods. The following methods
219219can help to test the responses.
@@ -241,7 +241,7 @@ Asserts that $fragment is found within the JSON response. It does not need to ma
241241Similar to **assertJSONFragment() **, but checks the entire JSON response to ensure exact matches.
242242
243243Working With XML
244- ----------------
244+ ================
245245
246246**getXML() **
247247
0 commit comments