diff --git a/composer.json b/composer.json index 25afb92..9f40a0b 100644 --- a/composer.json +++ b/composer.json @@ -21,12 +21,13 @@ "symfony/polyfill-php80": "^1.17" }, "require-dev": { - "doctrine/instantiator": "^1.1", - "guzzlehttp/psr7": "^1.4", - "nyholm/psr7": "^1.2", - "phpspec/phpspec": "^5.1 || ^6.3 || ^7.1", - "phpspec/prophecy": "^1.10.2", - "phpunit/phpunit": "^7.5.20 || ^8.5.33 || ^9.6.7" + "doctrine/instantiator": "^1.5 || ^2.0", + "guzzlehttp/psr7": "^1.9.1 || ^2.6.2", + "nyholm/psr7": "^1.8", + "phpspec/phpspec": "^5.1 || ^6.3 || ^7.5", + "phpspec/prophecy": "^1.18", + "phpspec/prophecy-phpunit": "^1.1 || ^2.1", + "phpunit/phpunit": "^7.5.20 || ^8.5.36 || ^9.6.16" }, "suggest": { "ext-json": "To detect JSON responses with the ContentTypePlugin", diff --git a/tests/PluginChainTest.php b/tests/PluginChainTest.php index 7a53681..b27b7c1 100644 --- a/tests/PluginChainTest.php +++ b/tests/PluginChainTest.php @@ -9,10 +9,13 @@ use Http\Client\Common\PluginChain; use Http\Promise\Promise; use PHPUnit\Framework\TestCase; +use Prophecy\PhpUnit\ProphecyTrait; use Psr\Http\Message\RequestInterface; class PluginChainTest extends TestCase { + use ProphecyTrait; + private function createPlugin(callable $func): Plugin { return new class($func) implements Plugin { diff --git a/tests/PluginClientBuilderTest.php b/tests/PluginClientBuilderTest.php index 9372859..d98a276 100644 --- a/tests/PluginClientBuilderTest.php +++ b/tests/PluginClientBuilderTest.php @@ -10,9 +10,12 @@ use Http\Client\HttpAsyncClient; use Http\Client\HttpClient; use PHPUnit\Framework\TestCase; +use Prophecy\PhpUnit\ProphecyTrait; class PluginClientBuilderTest extends TestCase { + use ProphecyTrait; + /** @dataProvider clientProvider */ public function testPriority(string $client): void {