fXmlRpc\Integration\NodeCallClientIntegrationTest::testServerNotReachableViaTcpIp PHP Метод

testServerNotReachableViaTcpIp() публичный Метод

public testServerNotReachableViaTcpIp ( Client $client )
$client Fxmlrpc\Client
    public function testServerNotReachableViaTcpIp(Client $client)
    {
        $client->setUri('http://127.0.0.1:12345/');
        try {
            $client->call('system.failure');
            $this->fail('Exception expected');
        } catch (\fXmlRpc\Exception\TransportException $e) {
            $this->assertInstanceOf('fXmlRpc\\Exception\\TransportException', $e);
            $this->assertInstanceOf('fXmlRpc\\Exception\\ExceptionInterface', $e);
            $this->assertInstanceOf('RuntimeException', $e);
            $this->assertStringStartsWith('Transport error occurred:', $e->getMessage());
            $this->assertSame(0, $e->getCode());
        }
    }