Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 3bb7047

Browse files
authored
Merge pull request #30 from aaa2000/fix-getmock-deprecation
Fix PHPUnit_Framework_TestCase::getMock deprecation
2 parents 6da7740 + 59a4ce9 commit 3bb7047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function setUp()
2626

2727
protected function makeRequest(GuzzleExceptions\TransferException $exception)
2828
{
29-
$client = $this->getMock('GuzzleHttp\ClientInterface');
29+
$client = $this->getMockBuilder('GuzzleHttp\ClientInterface')->getMock();
3030
$client->expects($this->any())->method('send')->willThrowException($exception);
3131
$client->expects($this->any())->method('createRequest')->willReturn($this->guzzleRequest);
3232

0 commit comments

Comments
 (0)