--- embedaddon/php/ext/dom/tests/dom_comment_basic.phpt 2012/02/21 23:47:54 1.1.1.1 +++ embedaddon/php/ext/dom/tests/dom_comment_basic.phpt 2012/05/29 12:34:37 1.1.1.2 @@ -23,24 +23,21 @@ $children = $root->childNodes; for ($index = 0; $index < $children->length; $index++) { echo "--- child $index ---\n"; $current = $children->item($index); - var_dump($current); + echo get_class($current), "\n"; var_dump($current->textContent); } --EXPECTF-- bool(true) --- child 0 --- -object(DOMText)#%d (0) { -} +DOMText string(2) " " --- child 1 --- -object(DOMComment)#%d (0) { -} +DOMComment string(14) " Hello World! " --- child 2 --- -object(DOMText)#%d (0) { -} +DOMText string(1) " "