X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2F4ClientTest.php;h=a2942b4c2b718a6dc8a7c3a7ef64f401be4a7624;hb=dbcb9c168e60ad868fba442452bbddafee7cf684;hp=159cb0ccca670aa7e6776c1aea1d8c1fa5b29d5f;hpb=ae4d5541ac98a771ef4e4f076d48c9b320866a71;p=plcapi.git diff --git a/tests/4ClientTest.php b/tests/4ClientTest.php index 159cb0c..a2942b4 100644 --- a/tests/4ClientTest.php +++ b/tests/4ClientTest.php @@ -56,12 +56,12 @@ class ClientTest extends PhpXmlRpc_PolyfillTestCase new xmlrpcval('hello', 'string'), )); $this->client->server .= 'XXX'; - $r = $this->client->send($m, 5); - // make sure there's no freaking catchall DNS in effect - $dnsinfo = dns_get_record($this->client->server); + $dnsinfo = @dns_get_record($this->client->server); if ($dnsinfo) { $this->markTestSkipped('Seems like there is a catchall DNS in effect: host ' . $this->client->server . ' found'); } else { + $r = $this->client->send($m, 5); + // make sure there's no freaking catchall DNS in effect $this->assertEquals(5, $r->faultCode()); } }