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

Commit 7150e44

Browse files
authored
Merge pull request #42 from php-http/patch-mockbuilder
Use getMockBuilder instead of getMock
2 parents c0168c6 + c251e5d commit 7150e44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/PromiseExceptionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ class PromiseExceptionTest extends \PHPUnit_Framework_TestCase
1212
{
1313
public function testGetException()
1414
{
15-
$request = $this->getMock('Psr\Http\Message\RequestInterface');
16-
$response = $this->getMock('Psr\Http\Message\ResponseInterface');
17-
$promise = $this->getMock('GuzzleHttp\Promise\PromiseInterface');
15+
$request = $this->getMockBuilder('Psr\Http\Message\RequestInterface')->getMock();
16+
$response = $this->getMockBuilder('Psr\Http\Message\ResponseInterface')->getMock();
17+
$promise = $this->getMockBuilder('GuzzleHttp\Promise\PromiseInterface')->getMock();
1818

1919
$adapter = new Promise($promise, $request);
2020
$method = new \ReflectionMethod('Http\Adapter\Guzzle6\Promise', 'handleException');

0 commit comments

Comments
 (0)