]> granicus.if.org Git - php/commitdiff
- Test no namespace case, too
authorMarcus Boerger <helly@php.net>
Tue, 1 Nov 2005 11:55:13 +0000 (11:55 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 1 Nov 2005 11:55:13 +0000 (11:55 +0000)
ext/simplexml/tests/025.phpt

index fc2516efa599d8ec4884d2a8314027813a3c427b..5eb873a1fa875977301f93066420ed33b7ddb334 100755 (executable)
@@ -33,6 +33,16 @@ $sxe = simplexml_load_string($xml);
 var_dump($sxe->getNamespaces());
 var_dump($sxe->getDocNamespaces());
 
+$xml =<<<EOF
+<?xml version='1.0'?>
+<root/>
+EOF;
+
+$sxe = simplexml_load_string($xml);
+
+var_dump($sxe->getNamespaces());
+var_dump($sxe->getDocNamespaces());
+
 ?>
 ===DONE===
 <?php exit(0); ?>
@@ -73,6 +83,10 @@ array(1) {
   [""]=>
   string(28) "http://www.w3.org/1999/xhtml"
 }
+array(0) {
+}
+array(0) {
+}
 ===DONE===
 --UEXPECTF--
 array(1) {
@@ -111,4 +125,8 @@ array(1) {
   [u""]=>
   string(28) "http://www.w3.org/1999/xhtml"
 }
+array(0) {
+}
+array(0) {
+}
 ===DONE===