8000 Response Assertions: add examples of headers · symfony/symfony-docs@39e8e1e · GitHub
[go: up one dir, main page]

Skip to content

Commit 39e8e1e

Browse files
Response Assertions: add examples of headers
1 parent 822f015 commit 39e8e1e

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
``assertRe 5A83 sponseHeaderSame(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)
0