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());
}
}