Skip to content

Commit

Permalink
chore: bump dev dependencies
Browse files Browse the repository at this point in the history
use ProphecyTrait
  • Loading branch information
Chris8934 committed Jan 21, 2024
1 parent 76015e9 commit ec7e17f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions tests/PluginChainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions tests/PluginClientBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit ec7e17f

Please sign in to comment.