From: Marcus Boerger Date: Tue, 1 Nov 2005 11:55:13 +0000 (+0000) Subject: - Test no namespace case, too X-Git-Tag: RELEASE_2_0_1~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78456eb9a27a6fd832d0b3f764fc1d7f625917b5;p=php - Test no namespace case, too --- diff --git a/ext/simplexml/tests/025.phpt b/ext/simplexml/tests/025.phpt index fc2516efa5..5eb873a1fa 100755 --- a/ext/simplexml/tests/025.phpt +++ b/ext/simplexml/tests/025.phpt @@ -33,6 +33,16 @@ $sxe = simplexml_load_string($xml); var_dump($sxe->getNamespaces()); var_dump($sxe->getDocNamespaces()); +$xml =<< + +EOF; + +$sxe = simplexml_load_string($xml); + +var_dump($sxe->getNamespaces()); +var_dump($sxe->getDocNamespaces()); + ?> ===DONE=== @@ -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===