fXmlRpc\Transport\RecorderTest::testReturnXmlForRequestAndNullForResponseWhenTransportThrowsException PHP Méthode

testReturnXmlForRequestAndNullForResponseWhenTransportThrowsException() public méthode

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