@@ -963,11 +963,11 @@ However, Symfony provides useful shortcut methods for the most common cases:
963
963
Response Assertions
964
964
...................
965
965
966
- ``assertResponseIsSuccessful(string $message = '', bool $verbose = true ) ``
966
+ ``assertResponseIsSuccessful(string $message = '', ? bool $verbose = null ) ``
967
967
Asserts that the response was successful (HTTP status is 2xx).
968
- ``assertResponseStatusCodeSame(int $expectedCode, string $message = '', bool $verbose = true ) ``
968
+ ``assertResponseStatusCodeSame(int $expectedCode, string $message = '', ? bool $verbose = null ) ``
969
969
Asserts a specific HTTP status code.
970
- ``assertResponseRedirects(?string $expectedLocation = null, ?int $expectedCode = null, string $message = '', bool $verbose = true ) ``
970
+ ``assertResponseRedirects(?string $expectedLocation = null, ?int $expectedCode = null, string $message = '', ? bool $verbose = null ) ``
971
971
Asserts the response is a redirect response (optionally, you can check
972
972
the target location and status code). The excepted location can be either
973
973
an absolute or a relative path.
@@ -985,13 +985,19 @@ Response Assertions
985
985
Asserts the response format returned by the
986
986
:method: `Symfony\\ Component\\ HttpFoundation\\ Response::getFormat ` method
987
987
is the same as the expected value.
988
- ``assertResponseIsUnprocessable(string $message = '', bool $verbose = true ) ``
988
+ ``assertResponseIsUnprocessable(string $message = '', bool ? $verbose = null ) ``
989
989
Asserts the response is unprocessable (HTTP status is 422)
990
990
991
991
.. versionadded :: 7.1
992
992
993
993
The ``$verbose `` parameters were introduced in Symfony 7.1.
994
994
995
+ .. versionadded :: 7.4
996
+
997
+ The ``$defaultVerboseMode = true; `` attribute was introduced in
998
+ :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Test\\ BrowserKitAssertionsTrait `
999
+ were introduced in Symfony 7.4 to define the default verbosity everywhere.
1000
+
995
1001
Request Assertions
996
1002
..................
997
1003
0 commit comments