From 144d5041b2639188a2ecc501e65b8e1fc305f6b4 Mon Sep 17 00:00:00 2001 From: John Conde Date: Sat, 28 Jan 2023 10:43:01 -0500 Subject: [PATCH] Tweaked test to allow it to run in PHP 8.2+ without deprecation notice/error --- tests/Authnetjson/AuthnetJsonRequestTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Authnetjson/AuthnetJsonRequestTest.php b/tests/Authnetjson/AuthnetJsonRequestTest.php index d34b05f..b2d0b45 100644 --- a/tests/Authnetjson/AuthnetJsonRequestTest.php +++ b/tests/Authnetjson/AuthnetJsonRequestTest.php @@ -68,12 +68,12 @@ public function testExceptionIsRaisedForInvalidJsonException(): void 'customerProfileId' => '123456789' ); - $this->http = $this->getMockBuilder(Curl::class) + $http = $this->getMockBuilder(Curl::class) ->getMock(); - $this->http->error = false; + $http->error = false; - $request = AuthnetApiFactory::getJsonApiHandler('asdcfvgbhn', 'asdcfvgbhn', AuthnetApiFactory::USE_DEVELOPMENT_SERVER); - $request->setProcessHandler($this->http); + $request = AuthnetApiFactory::getJsonApiHandler('a', 'b', AuthnetApiFactory::USE_DEVELOPMENT_SERVER); + $request->setProcessHandler($http); $request->deleteCustomerProfileRequest($requestJson); }