php-src/ext/simplexml/tests/profile09.phpt
Sterling Hughes 7f5b508f26 Add a "profile" of simplexml's expected behaviour in the form of tests.
This will be expanded as issues arise and will be a formal definition
(in code) of simplexml's behaviour.
2004-01-16 20:50:29 +00:00

20 lines
413 B
PHP

--TEST--
SimpleXML [profile]: Accessing a namespaced element without a namespace
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php
error_reporting(E_ALL & ~E_NOTICE);
$root = simplexml_load_string('<?xml version="1.0"?>
<root xmlns:reserved="reserved-ns">
<reserved:child>Hello</reserved:child>
</root>
');
echo $root->child;
echo "\n---Done---\n";
?>
--EXPECT--
---Done---