From 78456eb9a27a6fd832d0b3f764fc1d7f625917b5 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 1 Nov 2005 11:55:13 +0000 Subject: [PATCH] - Test no namespace case, too --- ext/simplexml/tests/025.phpt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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=== -- 2.50.1