Skip to content

Commit

Permalink
Tweaked test to allow it to run in PHP 8.2+ without deprecation notic…
Browse files Browse the repository at this point in the history
…e/error
  • Loading branch information
stymiee committed Jan 28, 2023
1 parent 2a438bd commit 144d504
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Authnetjson/AuthnetJsonRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 144d504

Please sign in to comment.