getPrevious()); self::assertEquals('Provided request does not contain a valid JSON body.', $e->getMessage()); self::assertEquals('Provided request does not contain a valid JSON body.', $e->getDetail()); self::assertEquals('Malformed request body', $e->getTitle()); self::assertEquals('https://shlink.io/api/error/malformed-request-body', $e->getType()); self::assertEquals(StatusCodeInterface::STATUS_BAD_REQUEST, $e->getStatus()); } }