From: gggeek Date: Wed, 30 Dec 2020 16:46:27 +0000 (+0000) Subject: tests reorg X-Git-Tag: plcapi-7.1-0~3^2~95 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0f9530656d3085bd273f9d6aaa00dcf77c70c557;p=plcapi.git tests reorg --- diff --git a/tests/3EncoderTest.php b/tests/3EncoderTest.php index 7621c6d..2c41d75 100644 --- a/tests/3EncoderTest.php +++ b/tests/3EncoderTest.php @@ -55,7 +55,7 @@ class EncoderTests extends PhpXmlRpc_PolyfillTestCase { $r = new DateTime(); $v = php_xmlrpc_encode($r); - $this->assertEquals('dateTime.iso8601', $v->kindof()); + $this->assertEquals('dateTime.iso8601', $v->scalartyp()); } public function testEncodeRecursive() 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()); } }