@@ -963,11 +963,11 @@ However, Symfony provides useful shortcut methods for the most common cases:
963963Response Assertions
964964...................
965965
966- ``assertResponseIsSuccessful(string $message = '', bool $verbose = true ) ``
966+ ``assertResponseIsSuccessful(string $message = '', ? bool $verbose = null ) ``
967967 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 ) ``
969969 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 ) ``
971971 Asserts the response is a redirect response (optionally, you can check
972972 the target location and status code). The excepted location can be either
973973 an absolute or a relative path.
@@ -985,13 +985,19 @@ Response Assertions
985985 Asserts the response format returned by the
986986 :method: `Symfony\\ Component\\ HttpFoundation\\ Response::getFormat ` method
987987 is the same as the expected value.
988- ``assertResponseIsUnprocessable(string $message = '', bool $verbose = true ) ``
988+ ``assertResponseIsUnprocessable(string $message = '', bool ? $verbose = null ) ``
989989 Asserts the response is unprocessable (HTTP status is 422)
990990
991991.. versionadded :: 7.1
992992
993993 The ``$verbose `` parameters were introduced in Symfony 7.1.
994994
995+ .. versionadded :: 7.4
996+
997+ The ``$defaultVerboseMode = true; `` attribute was introduced, in
998+ :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Test\\ BrowserKitAssertionsTrait `,
999+ in Symfony 7.4, to define the default verbosity everywhere.
1000+
9951001Request Assertions
9961002..................
9971003
0 commit comments