From 89b8bac30ee77d4e239c78ccac09b3da68afccca Mon Sep 17 00:00:00 2001 From: gggeek Date: Mon, 23 Jan 2023 16:47:25 +0000 Subject: [PATCH] fix tests --- tests/04LoggerTest.php | 2 +- tests/08ServerTest.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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']); -- 2.47.0