Skip to content

Commit 344b487

Browse files
authored
Merge pull request #216 from Soullivaneuh/last-response-exception-removal
Remove get last request/exception method
2 parents 6fb70d9 + d97bf07 commit 344b487

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clients/mock-client.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ certain responses::
6363

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

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

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

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

0 commit comments

Comments
 (0)