diff options
Diffstat (limited to 'ext/simplexml/tests/profile09.phpt')
| -rw-r--r-- | ext/simplexml/tests/profile09.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/simplexml/tests/profile09.phpt b/ext/simplexml/tests/profile09.phpt new file mode 100644 index 0000000..714572d --- /dev/null +++ b/ext/simplexml/tests/profile09.phpt @@ -0,0 +1,19 @@ +--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--- |
