diff --git a/composer.json b/composer.json index 9840cf0..4941b1a 100644 --- a/composer.json +++ b/composer.json @@ -12,12 +12,12 @@ ], "require": { "php": ">=5.3", - "react/promise": " ^2.1 || ^1.2.1", - "react/socket": "^1.9", + "react/promise": "^3 || ^2.1 || ^1.2.1", + "react/socket": "^1.12", "ringcentral/psr7": "^1.2" }, "require-dev": { - "clue/block-react": "^1.1", + "clue/block-react": "^1.5", "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8", "react/event-loop": "^1.2", "react/http": "^1.5" diff --git a/tests/ProxyConnectorTest.php b/tests/ProxyConnectorTest.php index 59fc466..0b8c155 100644 --- a/tests/ProxyConnectorTest.php +++ b/tests/ProxyConnectorTest.php @@ -137,7 +137,7 @@ public function testCancelPromiseWillCancelPendingConnection() $promise = $proxy->connect('google.com:80'); - $this->assertInstanceOf('React\Promise\CancellablePromiseInterface', $promise); + $this->assertInstanceOf('React\Promise\PromiseInterface', $promise); $promise->cancel(); } @@ -477,7 +477,7 @@ public function testCancelPromiseWhileConnectionIsReadyWillCloseOpenConnectionAn $deferred->resolve($stream); - $this->assertInstanceOf('React\Promise\CancellablePromiseInterface', $promise); + $this->assertInstanceOf('React\Promise\PromiseInterface', $promise); $promise->cancel();