From a10acdd481f59dd2ec2f2a893c15dc4b9907ba3b Mon Sep 17 00:00:00 2001 From: shibafu Date: Tue, 10 Sep 2019 22:35:36 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A2=E3=83=83=E3=82=AF=E3=81=8CHTTP?= =?UTF-8?q?=E3=82=B9=E3=83=86=E3=83=BC=E3=82=BF=E3=82=B9=E3=82=B3=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=81=AB=E5=BF=9C=E3=81=98=E3=81=9F=E4=BE=8B=E5=A4=96?= =?UTF-8?q?=E3=82=92=E6=8A=95=E3=81=92=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Unit/MetadataResolver/CreateMockedResolver.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Unit/MetadataResolver/CreateMockedResolver.php b/tests/Unit/MetadataResolver/CreateMockedResolver.php index 528728c..e7e0bc6 100644 --- a/tests/Unit/MetadataResolver/CreateMockedResolver.php +++ b/tests/Unit/MetadataResolver/CreateMockedResolver.php @@ -5,6 +5,7 @@ namespace Tests\Unit\MetadataResolver; use App\MetadataResolver\Resolver; use GuzzleHttp\Client; use GuzzleHttp\Handler\MockHandler; +use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\Response; use Monolog\Handler\AbstractHandler; @@ -41,7 +42,7 @@ trait CreateMockedResolver $mockResponse = new Response($status, $headers, $responseText); $this->handler = new MockHandler([$mockResponse]); - $client = new Client(['handler' => $this->handler]); + $client = new Client(['handler' => HandlerStack::create($this->handler)]); $this->resolver = app()->make($resolverClass, ['client' => $client]); return $this->resolver;