From: gggeek Date: Mon, 23 Jan 2023 16:47:25 +0000 (+0000) Subject: fix tests X-Git-Tag: 4.10.0~96 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=89b8bac30ee77d4e239c78ccac09b3da68afccca;p=plcapi.git fix tests --- diff --git a/tests/04LoggerTest.php b/tests/04LoggerTest.php index 2653e54d..479948fd 100644 --- a/tests/04LoggerTest.php +++ b/tests/04LoggerTest.php @@ -51,7 +51,7 @@ class LoggerTest extends PhpXmlRpc_PolyfillTestCase $l = $xp->getLogger(); XMLParser::setLogger($this); - $xp->parse(' 1 '); + $xp->parse('x'); $this->assertStringContainsString("invalid data received in BOOLEAN value", $this->errorBuffer); XMLParser::setLogger($l); diff --git a/tests/08ServerTest.php b/tests/08ServerTest.php index 72c80690..e7979d64 100644 --- a/tests/08ServerTest.php +++ b/tests/08ServerTest.php @@ -709,6 +709,12 @@ And turned it into nylon'; public function testCatchErrors() { + if (version_compare(PHP_VERSION, '7.0.0', '<')) + { + $this->markTestSkipped('cannot test php Error on php < 7.0'); + return; + } + // these test for the different server error catching modes $m = new xmlrpcmsg('tests.raiseError'); $v = $this->send($m, $GLOBALS['xmlrpcerr']['server_error']);