From: Moriyoshi Koizumi Date: Mon, 3 Nov 2003 22:49:24 +0000 (+0000) Subject: Add regression test for XPath support X-Git-Tag: php-5.0.0b3RC1~783 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8572fc2af5b975c42870eae8b841ca63f46c61cb;p=php Add regression test for XPath support --- diff --git a/ext/simplexml/tests/008.phpt b/ext/simplexml/tests/008.phpt new file mode 100644 index 0000000000..14912a6673 --- /dev/null +++ b/ext/simplexml/tests/008.phpt @@ -0,0 +1,20 @@ +--TEST-- +SimpleXML and XPath +--SKIPIF-- + +--FILE-- +xsearch("elem1/elem2/elem3/elem4")); +var_dump($sxe->xsearch("***")); +?> +--EXPECTF-- +array(1) { + [0]=> + object(simplexml_element)#%d (1) { + ["test"]=> + object(simplexml_element)#%d (0) { + } + } +} +bool(false)