Skip to content

Navigation Menu

Sign in
Appearance settings

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 90fe916

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

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎testing.rst

Copy file name to clipboardExpand all lines: testing.rst
+4-4Lines changed: 4 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.