diff options
Diffstat (limited to 'ext/simplexml/tests')
-rw-r--r-- | ext/simplexml/tests/SimpleXMLElement_getDocNamespaces.phpt | 2 | ||||
-rw-r--r-- | ext/simplexml/tests/SimpleXMLElement_xpath.phpt | 4 | ||||
-rw-r--r-- | ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt | 1 | ||||
-rw-r--r-- | ext/simplexml/tests/bug53033.phpt | 2 | ||||
-rw-r--r-- | ext/simplexml/tests/bug54973.phpt | 2 |
5 files changed, 10 insertions, 1 deletions
diff --git a/ext/simplexml/tests/SimpleXMLElement_getDocNamespaces.phpt b/ext/simplexml/tests/SimpleXMLElement_getDocNamespaces.phpt index 9df7591003..52d1341ae5 100644 --- a/ext/simplexml/tests/SimpleXMLElement_getDocNamespaces.phpt +++ b/ext/simplexml/tests/SimpleXMLElement_getDocNamespaces.phpt @@ -1,5 +1,7 @@ --TEST-- Testing getDocNamespaces() with invalid XML +--SKIPIF-- +<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?> --FILE-- <?php $xml = @new SimpleXMLElement("X",1); diff --git a/ext/simplexml/tests/SimpleXMLElement_xpath.phpt b/ext/simplexml/tests/SimpleXMLElement_xpath.phpt index fb7e6e90f0..3eb417cef2 100644 --- a/ext/simplexml/tests/SimpleXMLElement_xpath.phpt +++ b/ext/simplexml/tests/SimpleXMLElement_xpath.phpt @@ -1,5 +1,7 @@ --TEST-- Testing xpath() with invalid XML +--SKIPIF-- +<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?> --FILE-- <?php // gracefully recover from parsing of invalid XML; not available in PHP @@ -7,7 +9,7 @@ const XML_PARSE_RECOVER = 1; // we're not interested in checking concrete warnings regarding invalid XML $xml = @simplexml_load_string("XXXXXXX^", 'SimpleXMLElement', XML_PARSE_RECOVER); - + // $xml is supposed to hold a SimpleXMLElement, but not FALSE/NULL var_dump($xml->xpath("BBBB")); ?> diff --git a/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt b/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt index 75cf5720d5..cb6b3ad08f 100644 --- a/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt +++ b/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt @@ -2,6 +2,7 @@ Testing xpath() with invalid XML --SKIPIF-- <?php +if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); if (PHP_MAJOR_VERSION < 7) die("skip this test is for PHP 7+ only"); if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); ?> diff --git a/ext/simplexml/tests/bug53033.phpt b/ext/simplexml/tests/bug53033.phpt index 626022cd54..3da0dbc11c 100644 --- a/ext/simplexml/tests/bug53033.phpt +++ b/ext/simplexml/tests/bug53033.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #53033: Mathematical operations convert objects to integers +--SKIPIF-- +<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?> --FILE-- <?php diff --git a/ext/simplexml/tests/bug54973.phpt b/ext/simplexml/tests/bug54973.phpt index 29daaed788..58891eb3fe 100644 --- a/ext/simplexml/tests/bug54973.phpt +++ b/ext/simplexml/tests/bug54973.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #54973: SimpleXML casts integers wrong +--SKIPIF-- +<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?> --FILE-- <?php $xml = simplexml_load_string("<xml><number>9223372036854775808</number></xml>"); |