Skip to content

Commit b0835b0

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: Response Assertions: add examples of headers
2 parents 5a72a23 + 65541d1 commit b0835b0

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)