php-src/ext/simplexml/tests/008.phpt
Marcus Boerger 9e29f17493 Major bugfix for consistency.
# After long discussions we came to a conclusion on how to make this
# extension consistent in itself.
# Thanks to Rob for all the work
2004-01-17 19:41:32 +00:00

21 lines
403 B
PHP

--TEST--
SimpleXML and XPath
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php
$sxe = simplexml_load_file(dirname(__FILE__).'/sxe.xml');
var_dump($sxe->xpath("elem1/elem2/elem3/elem4"));
var_dump($sxe->xpath("***"));
?>
--EXPECTF--
array(1) {
[0]=>
object(simplexml_element)#%d (1) {
["test"]=>
object(simplexml_element)#%d (0) {
}
}
}
bool(false)