From 884550c5517c0424d59a5776b46a89b32ce2d808 Mon Sep 17 00:00:00 2001 From: Anatoly Nekhay Date: Sun, 24 Oct 2021 17:56:23 +0500 Subject: [PATCH] improve tests --- tests/ResponseFactoryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ResponseFactoryTest.php b/tests/ResponseFactoryTest.php index b2ff956..5a3d095 100644 --- a/tests/ResponseFactoryTest.php +++ b/tests/ResponseFactoryTest.php @@ -90,7 +90,7 @@ public function testCreateJsonResponse() : void */ public function testCreateResponseWithInvalidJson() : void { - $this->expectException(\JsonException::class); + $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('Maximum stack depth exceeded'); $response = (new ResponseFactory)