File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments