$l = $xp->getLogger();
XMLParser::setLogger($this);
- $xp->parse('<?xml version="1.0" ?><methodResponse><params><param><value><boolean> 1 </boolean></value></param></params></methodResponse>');
+ $xp->parse('<?xml version="1.0" ?><methodResponse><params><param><value><boolean>x</boolean></value></param></params></methodResponse>');
$this->assertStringContainsString("invalid data received in BOOLEAN value", $this->errorBuffer);
XMLParser::setLogger($l);
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']);