Skip to content

Commit 90fe916

Browse files
author
Nicolas Appriou
committed
[HttpFoundation] Update http response test constraint signature
1 parent e100922 commit 90fe916

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -922,11 +922,11 @@ However, Symfony provides useful shortcut methods for the most common cases:
922922
Response Assertions
923923
...................
924924

925-
``assertResponseIsSuccessful(string $message = '')``
925+
``assertResponseIsSuccessful(string $message = '', bool $verbose = true)``
926926
Asserts that the response was successful (HTTP status is 2xx).
927-
``assertResponseStatusCodeSame(int $expectedCode, string $message = '')``
927+
``assertResponseStatusCodeSame(int $expectedCode, string $message = '', bool $verbose = true)``
928928
Asserts a specific HTTP status code.
929-
``assertResponseRedirects(string $expectedLocation = null, int $expectedCode = null, string $message = '')``
929+
``assertResponseRedirects(string $expectedLocation = null, int $expectedCode = null, string $message = '', bool $verbose = true)``
930930
Asserts the response is a redirect response (optionally, you can check
931931
the target location and status code).
932932
``assertResponseHasHeader(string $headerName, string $message = '')``/``assertResponseNotHasHeader(string $headerName, string $message = '')``
@@ -943,7 +943,7 @@ Response Assertions
943943
Asserts the response format returned by the
944944
:method:`Symfony\\Component\\HttpFoundation\\Response::getFormat` method
945945
is the same as the expected value.
946-
``assertResponseIsUnprocessable(string $message = '')``
946+
``assertResponseIsUnprocessable(string $message = '', bool $verbose = true)``
947947
Asserts the response is unprocessable (HTTP status is 422)
948948

949949
Request Assertions

0 commit comments

Comments
 (0)