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 1515 "clue/json-stream" : " ^0.1" ,
1616 "react/event-loop" : " ^1.2" ,
1717 "react/http" : " ^1.8" ,
18- "react/promise" : " ^3 || ^2.0 || ^1.1 " ,
18+ "react/promise" : " ^3.1 || ^2.11 || ^1.3 " ,
1919 "react/promise-stream" : " ^1.6" ,
2020 "react/socket" : " ^1.12" ,
2121 "react/stream" : " ^1.2" ,
Original file line number Diff line number Diff line change 55use Clue \React \Docker \Io \StreamingParser ;
66use Clue \Tests \React \Docker \TestCase ;
77use React \Promise ;
8- use React \Promise \CancellablePromiseInterface ;
98use React \Promise \Deferred ;
109use React \Stream \ThroughStream ;
1110
@@ -119,11 +118,10 @@ public function testDeferredCancelingPromiseWillCloseStream()
119118 $ stream ->expects ($ this ->once ())->method ('isReadable ' )->willReturn (true );
120119
121120 $ 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- }
125121
126122 $ stream ->expects ($ this ->once ())->method ('close ' );
123+
124+ assert (method_exists ($ promise , 'cancel ' ));
127125 $ promise ->cancel ();
128126 }
129127
You can’t perform that action at this time.
0 commit comments