Skip to content

Commit 3b98e1e

Browse files
authored
Merge pull request #231 from citricsquid/patch-1
Replaces deprecated getMock with createMock in mock client documentation
2 parents 2d6cab3 + a058c13 commit 3b98e1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clients/mock-client.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ certain responses::
6161
{
6262
$client = new Client();
6363

64-
$response = $this->getMock('Psr\Http\Message\ResponseInterface');
64+
$response = $this->createMock('Psr\Http\Message\ResponseInterface');
6565
$client->addResponse($response);
6666

6767
// $request is an instance of Psr\Http\Message\RequestInterface
@@ -81,7 +81,7 @@ Or set a default response::
8181
{
8282
$client = new Client();
8383

84-
$response = $this->getMock('Psr\Http\Message\ResponseInterface');
84+
$response = $this->createMock('Psr\Http\Message\ResponseInterface');
8585
$client->setDefaultResponse($response);
8686

8787
// $firstRequest and $secondRequest are instances of Psr\Http\Message\RequestInterface
@@ -129,7 +129,7 @@ Or set a default exception::
129129
$exception = new \Exception('Whoops!');
130130
$client->setDefaultException($exception);
131131

132-
$response = $this->getMock('Psr\Http\Message\ResponseInterface');
132+
$response = $this->createMock('Psr\Http\Message\ResponseInterface');
133133
$client->addResponse($response);
134134

135135
// $firstRequest and $secondRequest are instances of Psr\Http\Message\RequestInterface

0 commit comments

Comments
 (0)