Skip to content

Commit

Permalink
use guzzle 7 client for integration tests (solariumphp#881)
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Kalkbrenner <[email protected]>
  • Loading branch information
dmaicher and mkalkbrenner authored Nov 3, 2020
1 parent ca9e736 commit 346355d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
},
"require-dev": {
"escapestudios/symfony2-coding-standard": "^3.11",
"guzzlehttp/guzzle": "^6.5",
"guzzlehttp/guzzle": "^7.2",
"nyholm/psr7": "^1.2",
"php-http/guzzle6-adapter": "^2.0",
"php-http/guzzle7-adapter": "^0.1",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
Expand Down
2 changes: 1 addition & 1 deletion examples/6.1.1-psr18-adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
htmlHeader();

// create a PSR-18 adapter instance
$httpClient = new Http\Adapter\Guzzle6\Client();
$httpClient = new Http\Adapter\Guzzle7\Client();
$factory = new Nyholm\Psr7\Factory\Psr17Factory();
$adapter = new Solarium\Core\Client\Adapter\Psr18Adapter($httpClient, $factory, $factory);

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/TestClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Solarium\Tests\Integration;

use Http\Adapter\Guzzle6\Client as GuzzlePsrClient;
use Http\Adapter\Guzzle7\Client as GuzzlePsrClient;
use Nyholm\Psr7\Factory\Psr17Factory;
use Solarium\Client;
use Solarium\Core\Client\Adapter\Curl;
Expand Down

0 comments on commit 346355d

Please sign in to comment.