@@ -41,7 +41,7 @@ public function testSuccessiveCallMustUseResponseInterface()
41
41
);
42
42
43
43
$ promise = $ this ->httpAsyncClient ->sendAsyncRequest ($ request );
44
- $ this ->assertInstanceOf ('Http\Client \Promise ' , $ promise );
44
+ $ this ->assertInstanceOf ('Http\Promise \Promise ' , $ promise );
45
45
46
46
$ response = null ;
47
47
$ promise ->then ()->then ()->then (function ($ r ) use (&$ response ) {
@@ -66,7 +66,7 @@ public function testSuccessiveInvalidCallMustUseException()
66
66
);
67
67
68
68
$ promise = $ this ->httpAsyncClient ->sendAsyncRequest ($ request );
69
- $ this ->assertInstanceOf ('Http\Client \Promise ' , $ promise );
69
+ $ this ->assertInstanceOf ('Http\Promise \Promise ' , $ promise );
70
70
71
71
$ exception = null ;
72
72
$ response = null ;
@@ -101,7 +101,7 @@ public function testAsyncSendRequest($method, $uri, array $headers, $body)
101
101
);
102
102
103
103
$ promise = $ this ->httpAsyncClient ->sendAsyncRequest ($ request );
104
- $ this ->assertInstanceOf ('Http\Client \Promise ' , $ promise );
104
+ $ this ->assertInstanceOf ('Http\Promise \Promise ' , $ promise );
105
105
106
106
$ response = null ;
107
107
$ promise ->then (function ($ r ) use (&$ response ) {
@@ -132,7 +132,7 @@ public function testSendAsyncWithInvalidUri()
132
132
$ exception = null ;
133
133
$ response = null ;
134
134
$ promise = $ this ->httpAsyncClient ->sendAsyncRequest ($ request );
135
- $ this ->assertInstanceOf ('Http\Client \Promise ' , $ promise );
135
+ $ this ->assertInstanceOf ('Http\Promise \Promise ' , $ promise );
136
136
137
137
$ promise ->then (function ($ r ) use (&$ response ) {
138
138
$ response = $ r ;
@@ -177,7 +177,7 @@ public function testSendAsyncRequestWithOutcome($uriAndOutcome, $protocolVersion
177
177
$ response = $ r ;
178
178
});
179
179
180
- $ this ->assertInstanceOf ('Http\Client \Promise ' , $ promise );
180
+ $ this ->assertInstanceOf ('Http\Promise \Promise ' , $ promise );
181
181
$ promise ->wait ();
182
182
$ this ->assertResponse (
183
183
$ response ,
@@ -186,4 +186,3 @@ public function testSendAsyncRequestWithOutcome($uriAndOutcome, $protocolVersion
186
186
$ this ->assertRequest ($ method , $ headers , $ body , $ protocolVersion );
187
187
}
188
188
}
189
-
0 commit comments