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)