Annotation of embedaddon/php/ext/dom/tests/bug38949.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #38949 (Cannot get xmlns value attribute)
                      3: --SKIPIF--
                      4: <?php require_once('skipif.inc'); ?>
                      5: --FILE--
                      6: <?php
                      7: 
                      8: $doc = new DOMDocument();
                      9: $doc->load(dirname(__FILE__)."/nsdoc.xml");
                     10: 
                     11: $root = $doc->documentElement;
                     12: 
                     13: echo $root->getAttribute("xmlns")."\n";
                     14: echo $root->getAttribute("xmlns:ns2")."\n";
                     15: 
                     16: $child = $root->firstChild->nextSibling;
                     17: echo $child->getAttribute("xmlns")."\n";
                     18: echo $child->getAttribute("xmlns:ns2")."\n";
                     19: 
                     20: echo "DONE\n";
                     21: ?>
                     22: --EXPECT--
                     23: http://ns
                     24: http://ns2
                     25: 
                     26: 
                     27: DONE

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>