Skip to content

Commit cab866a

Browse files
committed
minor #18553 Response Assertions: add examples of headers (alexislefebvre)
This PR was merged into the 5.4 branch. Discussion ---------- Response Assertions: add examples of headers I didn't know if I had to write `contentType`, `CONTENT_TYPE`, etc. So I checked and found the expected format. Commits ------- 39e8e1e Response Assertions: add examples of headers
2 parents 822f015 + 39e8e1e commit cab866a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,10 +971,10 @@ Response Assertions
971971
Asserts the response is a redirect response (optionally, you can check
972972
the target location and status code).
973973
``assertResponseHasHeader(string $headerName, string $message = '')``/``assertResponseNotHasHeader(string $headerName, string $message = '')``
974-
Asserts the given header is (not) available on the response.
974+
Asserts the given header is (not) available on the response, e.g. ``assertResponseHasHeader('content-type');``.
975975
``assertResponseHeaderSame(string $headerName, string $expectedValue, string $message = '')``/``assertResponseHeaderNotSame(string $headerName, string $expectedValue, string $message = '')``
976976
Asserts the given header does (not) contain the expected value on the
977-
response.
977+
response, e.g. ``assertResponseHeaderSame('content-type', 'application/octet-stream');``.
978978
``assertResponseHasCookie(string $name, string $path = '/', string $domain = null, string $message = '')``/``assertResponseNotHasCookie(string $name, string $path = '/', string $domain = null, string $message = '')``
979979
Asserts the given cookie is present in the response (optionally
980980
checking for a specific cookie path or domain).

0 commit comments

Comments
 (0)