@@ -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,9 +985,17 @@ 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
991+ By default, these assert methods provide detailed error messages when they fail.
992+ You can control the verbosity level using the optional ``verbose `` argument in
993+ each assert method. To set this verbosity level globally, use the
994+ ``setBrowserKitAssertionsAsVerbose() `` method from the
995+ :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Test\\ BrowserKitAssertionsTrait `::
996+
997+ BrowserKitAssertionsTrait::setBrowserKitAssertionsAsVerbose(false);
998+
991999Request Assertions
9921000..................
9931001
0 commit comments