fXmlRpc\Integration\AbstractCallClientIntegrationTest::executeSystemFailureTest PHP Method

executeSystemFailureTest() protected method

protected executeSystemFailureTest ( Client $client )
$client Fxmlrpc\Client
    protected function executeSystemFailureTest(Client $client)
    {
        $client->setUri(static::$errorEndpoint);
        try {
            $client->call('system.failure');
            $this->fail('Exception expected');
        } catch (\fXmlRpc\Exception\HttpException $e) {
            $this->assertInstanceOf('fXmlRpc\\Exception\\AbstractTransportException', $e);
            $this->assertInstanceOf('fXmlRpc\\Exception\\ExceptionInterface', $e);
            $this->assertInstanceOf('RuntimeException', $e);
            $this->assertStringStartsWith('An HTTP error occurred', $e->getMessage());
            $this->assertSame(500, $e->getCode());
        }
    }