Skip to content

Commit

Permalink
Replace getMock() with createMock()
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Nov 15, 2018
1 parent 8ff4dba commit 28d23e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Stripe/HttpClient/CurlClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private function setInitialNetworkRetryDelay($initialNetworkRetryDelay)

private function createFakeRandomGenerator($returnValue = 1.0)
{
$fakeRandomGenerator = $this->getMock('Stripe\Util\RandomGenetator', ['randFloat']);
$fakeRandomGenerator = $this->createMock('Stripe\Util\RandomGenerator', ['randFloat']);
$fakeRandomGenerator->method('randFloat')->willReturn($returnValue);
return $fakeRandomGenerator;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function setUp()
Stripe::setAccountId(null);

// Set up the HTTP client mocker
$this->clientMock = $this->getMock('\Stripe\HttpClient\ClientInterface');
$this->clientMock = $this->createMock('\Stripe\HttpClient\ClientInterface');

// By default, use the real HTTP client
ApiRequestor::setHttpClient(HttpClient\CurlClient::instance());
Expand Down

0 comments on commit 28d23e0

Please sign in to comment.