8000 Merge branch '6.2' into 6.3 · symfony/symfony-docs@65541d1 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 65541d1

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: Response Assertions: add examples of headers
2 parents 1782e6d + 0de3538 commit 65541d1

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
@@ -927,10 +927,10 @@ Response Assertions
927927
Asserts the response is a redirect response (optionally, you can check
928928
the target location and status code).
929929
``assertResponseHasHeader(string $headerName, string $message = '')``/``assertResponseNotHasHeader(string $headerName, string $message = '')``
930-
Asserts the given header is (not) available on the response.
930+
Asserts the given header is (not) available on the response, e.g. ``assertResponseHasHeader('content-type');``.
931931
``assertResponseHeaderSame(string $headerName, string $expectedValue, string $message = '')``/``assertResponseHeaderNotSame(string $headerName, string $expectedValue, string $message = '')``
932932
Asserts the given header does (not) contain the expected value on the
933-
response.
933+
response, e.g. ``assertResponseHeaderSame('content-type', 'application/octet-stream');``.
934934
``assertResponseHasCookie(string $name, string $path = '/', string $domain = null, string $message = '')``/``assertResponseNotHasCookie(string $name, string $path = '/', string $domain = null, string $message = '')``
935935
Asserts the given cookie is present in the response (optionally
936936
checking for a specific cookie path or domain).

0 commit comments

Comments
 (0)
0