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::
1977
1977
}
1978
1978
}
1979
1979
1980
- Simulate a Transport Exception
1981
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1980
+ Testing Network Transport Exceptions
1981
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1982
1982
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.
1986
1985
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
1988
1987
error. :class: `Symfony\\ Component\\ HttpClient\\ Response\\ MockResponse ` allows
1989
1988
you to do so, by yielding the exception from its body::
1990
1989
You can’t perform that action at this time.
0 commit comments