File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 33namespace Http \Mock ;
44
55use Http \Client \Common \HttpAsyncClientEmulator ;
6- use Http \Client \Common \VersionBridgeClient ;
76use Http \Client \Exception ;
87use Http \Client \HttpAsyncClient ;
98use Http \Client \HttpClient ;
2625class Client implements HttpClient, HttpAsyncClient
2726{
2827 use HttpAsyncClientEmulator;
29- use VersionBridgeClient;
3028
3129 /**
3230 * @var ResponseFactory|ResponseFactoryInterface
@@ -78,9 +76,15 @@ public function __construct($responseFactory = null)
7876 }
7977
8078 /**
81- * {@inheritdoc}
79+ * Respond with the prepared behaviour, in the following order.
80+ *
81+ * - Throw the next exception in the list and advance
82+ * - Return the next response in the list and advance
83+ * - Throw the default exception if set (forever)
84+ * - Return the default response if set (forever)
85+ * - Create a new empty response with the response factory
8286 */
83- public function doSendRequest (RequestInterface $ request )
87+ public function sendRequest (RequestInterface $ request ): ResponseInterface
8488 {
8589 $ this ->requests [] = $ request ;
8690
You can’t perform that action at this time.
0 commit comments