fXmlRpc\Integration\AbstractCallClientIntegrationTest::testFault PHP Method

testFault() public method

public testFault ( fXmlRpc\CallClientInterface $client )
$client fXmlRpc\CallClientInterface
    public function testFault(CallClientInterface $client)
    {
        try {
            $client->call('system.fault');
            $this->fail('Expected exception');
        } catch (fXmlRpc\Exception\FaultException $e) {
            $this->assertContains('ERROR', $e->getMessage());
            $this->assertContains('ERROR', $e->getFaultString());
            $this->assertSame(0, $e->getCode());
            $this->assertSame(123, $e->getFaultCode());
        }
    }