File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1977,14 +1977,13 @@ test it in a real application::
19771977 }
19781978 }
19791979
1980- Simulate a Transport Exception
1981- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1980+ Testing Network Transport Exceptions
1981+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19821982
1983- When making HTTP requests, it sometimes occurs an error at transport level.
1984- You can find more information about transport errors it in the
1985- :ref: `Network Errors <http-client_network-errors >` section.
1983+ As explained in the :ref: `Network Errors section <http-client_network-errors >`,
1984+ when making HTTP requests you might face errors at transport level.
19861985
1987- It may be useful to test how your application behaves in case of a transport
1986+ That's why it's useful to test how your application behaves in case of a transport
19881987error. :class: `Symfony\\ Component\\ HttpClient\\ Response\\ MockResponse ` allows
19891988you to do so, by yielding the exception from its body::
19901989
You can’t perform that action at this time.
0 commit comments