File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ certain responses::
61
61
{
62
62
$client = new Client();
63
63
64
- $response = $this->getMock ('Psr\Http\Message\ResponseInterface');
64
+ $response = $this->createMock ('Psr\Http\Message\ResponseInterface');
65
65
$client->addResponse($response);
66
66
67
67
// $request is an instance of Psr\Http\Message\RequestInterface
@@ -81,7 +81,7 @@ Or set a default response::
81
81
{
82
82
$client = new Client();
83
83
84
- $response = $this->getMock ('Psr\Http\Message\ResponseInterface');
84
+ $response = $this->createMock ('Psr\Http\Message\ResponseInterface');
85
85
$client->setDefaultResponse($response);
86
86
87
87
// $firstRequest and $secondRequest are instances of Psr\Http\Message\RequestInterface
@@ -129,7 +129,7 @@ Or set a default exception::
129
129
$exception = new \Exception('Whoops!');
130
130
$client->setDefaultException($exception);
131
131
132
- $response = $this->getMock ('Psr\Http\Message\ResponseInterface');
132
+ $response = $this->createMock ('Psr\Http\Message\ResponseInterface');
133
133
$client->addResponse($response);
134
134
135
135
// $firstRequest and $secondRequest are instances of Psr\Http\Message\RequestInterface
You can’t perform that action at this time.
0 commit comments