@@ -961,11 +961,11 @@ However, Symfony provides useful shortcut methods for the most common cases:
961
961
Response Assertions
962
962
...................
963
963
964
- ``assertResponseIsSuccessful(string $message = '') ``
964
+ ``assertResponseIsSuccessful(string $message = '', bool $verbose = true ) ``
965
965
Asserts that the response was successful (HTTP status is 2xx).
966
- ``assertResponseStatusCodeSame(int $expectedCode, string $message = '') ``
966
+ ``assertResponseStatusCodeSame(int $expectedCode, string $message = '', bool $verbose = true ) ``
967
967
Asserts a specific HTTP status code.
968
- ``assertResponseRedirects(?string $expectedLocation = null, ?int $expectedCode = null, string $message = '') ``
968
+ ``assertResponseRedirects(?string $expectedLocation = null, ?int $expectedCode = null, string $message = '', bool $verbose = true ) ``
969
969
Asserts the response is a redirect response (optionally, you can check
970
970
the target location and status code). The excepted location can be either
971
971
an absolute or a relative path.
@@ -983,9 +983,13 @@ Response Assertions
983
983
Asserts the response format returned by the
984
984
:method: `Symfony\\ Component\\ HttpFoundation\\ Response::getFormat ` method
985
985
is the same as the expected value.
986
- ``assertResponseIsUnprocessable(string $message = '') ``
986
+ ``assertResponseIsUnprocessable(string $message = '', bool $verbose = true ) ``
987
987
Asserts the response is unprocessable (HTTP status is 422)
988
988
989
+ .. versionadded :: 7.1
990
+
991
+ The ``$verbose `` parameters were introduced in Symfony 7.1.
992
+
989
993
Request Assertions
990
994
..................
991
995
0 commit comments