Skip to content

Commit

Permalink
Merge pull request #216 from Soullivaneuh/last-response-exception-rem…
Browse files Browse the repository at this point in the history
…oval

Remove get last request/exception method
  • Loading branch information
dbu committed Nov 30, 2017
2 parents 6fb70d9 + d97bf07 commit 344b487
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions clients/mock-client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ certain responses::

$response = $this->getMock('Psr\Http\Message\ResponseInterface');
$client->addResponse($response);
$this->assertSame($response, $client->getLastResponse());

// $request is an instance of Psr\Http\Message\RequestInterface
$returnedResponse = $client->sendRequest($request);
Expand Down Expand Up @@ -108,7 +107,6 @@ To fake an exception being thrown::

$exception = new \Exception('Whoops!');
$client->addException($exception);
$this->assertSame($exception, $client->getLastException());

// $request is an instance of Psr\Http\Message\RequestInterface
$returnedResponse = $client->sendRequest($request);
Expand Down

0 comments on commit 344b487

Please sign in to comment.