@@ -30,9 +30,7 @@ function it_returns_response(RequestInterface $request, ResponseInterface $respo
3030 }
3131 };
3232
33- $ promise = $ this ->handleRequest ($ request , $ next , function () {});
34- $ promise ->shouldReturnAnInstanceOf ('Http\Client\Common\Deferred ' );
35- $ promise ->wait ()->shouldReturn ($ response );
33+ $ this ->handleRequest ($ request , $ next , function () {})->shouldReturnAnInstanceOf ('Http\Client\Promise\HttpFulfilledPromise ' );
3634 }
3735
3836 function it_throws_exception_on_multiple_exceptions (RequestInterface $ request )
@@ -55,7 +53,7 @@ function it_throws_exception_on_multiple_exceptions(RequestInterface $request)
5553 };
5654
5755 $ promise = $ this ->handleRequest ($ request , $ next , function () {});
58- $ promise ->shouldReturnAnInstanceOf ('Http\Client\Common\Deferred ' );
56+ $ promise ->shouldReturnAnInstanceOf ('Http\Client\Promise\HttpRejectedPromise ' );
5957 $ promise ->shouldThrow ($ exception2 )->duringWait ();
6058 }
6159
@@ -78,7 +76,7 @@ function it_returns_response_on_second_try(RequestInterface $request, ResponseIn
7876 };
7977
8078 $ promise = $ this ->handleRequest ($ request , $ next , function () {});
81- $ promise ->shouldReturnAnInstanceOf ('Http\Client\Common\Deferred ' );
79+ $ promise ->shouldReturnAnInstanceOf ('Http\Client\Promise\HttpFulfilledPromise ' );
8280 $ promise ->wait ()->shouldReturn ($ response );
8381 }
8482
@@ -100,13 +98,8 @@ function it_does_not_keep_history_of_old_failure(RequestInterface $request, Resp
10098 }
10199 };
102100
103- $ promise = $ this ->handleRequest ($ request , $ next , function () {});
104- $ promise ->shouldReturnAnInstanceOf ('Http\Client\Common\Deferred ' );
105- $ promise ->wait ()->shouldReturn ($ response );
106-
107- $ promise = $ this ->handleRequest ($ request , $ next , function () {});
108- $ promise ->shouldReturnAnInstanceOf ('Http\Client\Common\Deferred ' );
109- $ promise ->wait ()->shouldReturn ($ response );
101+ $ this ->handleRequest ($ request , $ next , function () {})->shouldReturnAnInstanceOf ('Http\Client\Promise\HttpFulfilledPromise ' );
102+ $ this ->handleRequest ($ request , $ next , function () {})->shouldReturnAnInstanceOf ('Http\Client\Promise\HttpFulfilledPromise ' );
110103 }
111104
112105 function it_has_an_exponential_default_delay (RequestInterface $ request , Exception \HttpException $ exception )
0 commit comments