Skip to content

Commit e804355

Browse files
committed
Tweaks
1 parent 46fb1b7 commit e804355

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

http_client.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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
19881987
error. :class:`Symfony\\Component\\HttpClient\\Response\\MockResponse` allows
19891988
you to do so, by yielding the exception from its body::
19901989

0 commit comments

Comments
 (0)