8000 Merge branch '5.4' into 6.2 · symfony/symfony-docs@0de3538 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0de3538

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: Response Assertions: add examples of headers
2 parents f90b324 + cab866a commit 0de3538

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
@@ -967,10 +967,10 @@ Response Assertions
967967
Asserts the response is a redirect response (optionally, you can check
968968
the target location and status code).
969969
``assertResponseHasHeader(string $headerName, string $message = '')``/``assertResponseNotHasHeader(string $headerName, string $message = '')``
970-
Asserts the given header is (not) available on the response.
970+
Asserts the given header is (not) available on the response, e.g. ``assertResponseHasHeader('content-type');``.
971971
``assertResponseHeaderSame(string $headerName, string $expectedValue, string $message = '')``/``assertResponseHeaderNotSame(string $headerName, string $expectedValue, string $message = '')``
972972
Asserts the given header does (not) contain the expected value on the
973-
response.
973+
response, e.g. ``assertResponseHeaderSame('content-type', 'application/octet-stream');``.
974974
``assertResponseHasCookie(string $name, string $path = '/', string $domain = null, string $message = '')``/``assertResponseNotHasCookie(string $name, string $path = '/', string $domain = null, string $message = '')``
975975
Asserts the given cookie is present in the response (optionally
976976
checking for a specific cookie path or domain).

0 commit comments

Comments
 (0)
0