Skip to content

Commit fdf8824

Browse files
committed
Reword and tweaks
1 parent 1d7a374 commit fdf8824

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

testing.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -988,18 +988,21 @@ Response Assertions
988988
``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+
991999
.. versionadded:: 7.1
9921000

9931001
The ``$verbose`` parameters were introduced in Symfony 7.1.
9941002

9951003
.. versionadded:: 7.4
9961004

997-
The ``$defaultVerboseMode = true;`` attribute was introduced in
998-
:class:`Symfony\\Bundle\\FrameworkBundle\\Test\\BrowserKitAssertionsTrait`
999-
in Symfony 7.4. This attribute allows you to define the default verbosity
1000-
for all applicable assertions within the trait, overriding the initial `null`
1001-
value of the `$verbose` parameter.
1002-
1005+
The ``setBrowserKitAssertionsAsVerbose()`` method ws introduced in Symfony 7.4.
10031006

10041007
Request Assertions
10051008
..................

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy