File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 15
15
"clue/json-stream" : " ^0.1" ,
16
16
"react/event-loop" : " ^1.2" ,
17
17
"react/http" : " ^1.8" ,
18
- "react/promise" : " ^3 || ^2.0 || ^1.1 " ,
18
+ "react/promise" : " ^3.1 || ^2.11 || ^1.3 " ,
19
19
"react/promise-stream" : " ^1.6" ,
20
20
"react/socket" : " ^1.12" ,
21
21
"react/stream" : " ^1.2" ,
Original file line number Diff line number Diff line change 5
5
use Clue \React \Docker \Io \StreamingParser ;
6
6
use Clue \Tests \React \Docker \TestCase ;
7
7
use React \Promise ;
8
- use React \Promise \CancellablePromiseInterface ;
9
8
use React \Promise \Deferred ;
10
9
use React \Stream \ThroughStream ;
11
10
@@ -119,11 +118,10 @@ public function testDeferredCancelingPromiseWillCloseStream()
119
118
$ stream ->expects ($ this ->once ())->method ('isReadable ' )->willReturn (true );
120
119
121
120
$ promise = $ this ->parser ->deferredStream ($ stream );
122
- if (!($ promise instanceof CancellablePromiseInterface)) {
123
- $ this ->markTestSkipped ('Requires Promise v2 API and has no effect on v1 API ' );
124
- }
125
121
126
122
$ stream ->expects ($ this ->once ())->method ('close ' );
123
+
124
+ assert (method_exists ($ promise , 'cancel ' ));
127
125
$ promise ->cancel ();
128
126
}
129
127
You can’t perform that action at this time.
0 commit comments