public function testIsLastResponseNotContainXmlFromPreviousRequest()
{
$this->transportOk($this->at(0));
$this->transportFail($this->at(1));
$this->client->call('TestMethod', ['param1', 2, ['param3' => true]]);
$this->assertXmlStringEqualsXmlString($this->expectedRequest, $this->recorder->getLastRequest());
$this->assertXmlStringEqualsXmlString($this->expectedResponse, $this->recorder->getLastResponse());
try {
$this->client->call('TestMethod', ['param1', 2, ['param3' => true]]);
} catch (Exception $e) {
$this->assertSame($this->exception, $e);
}
$lastRequest = $this->recorder->getLastRequest();
$lastResponse = $this->recorder->getLastResponse();
$lastException = $this->recorder->getLastException();
$this->assertXmlStringEqualsXmlString($this->expectedRequest, $lastRequest);
$this->assertNull($lastResponse);
$this->assertSame($this->exception, $lastException);
}