From: Marcus Boerger Date: Mon, 29 Mar 2004 20:54:13 +0000 (+0000) Subject: Fix tests X-Git-Tag: php-5.0.0RC2RC1~162 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4dc6fe7f62d56f27fc499414d37d5ef53e2569d8;p=php Fix tests --- diff --git a/ext/dom/tests/dom001.phpt b/ext/dom/tests/dom001.phpt index a0c78fbb0a..01b9fec3c4 100644 --- a/ext/dom/tests/dom001.phpt +++ b/ext/dom/tests/dom001.phpt @@ -63,8 +63,9 @@ print "Removed " . $attr . " attributes.\n"; echo "--------- attributes of rootnode\n"; $attrs = $rootnode->attributes; print_node_list($attrs); - +var_dump($attrs); echo "--------- children of an attribute\n"; +var_dump($children = $attrs->item(0)); $children = $attrs->item(0)->childNodes; print_node_list($children); diff --git a/ext/dom/tests/dom003.phpt b/ext/dom/tests/dom003.phpt index 40ddb1f775..e3aa26e05c 100644 --- a/ext/dom/tests/dom003.phpt +++ b/ext/dom/tests/dom003.phpt @@ -21,13 +21,13 @@ $rootNode->appendChild($rootNode); ?> --EXPECTF-- --- Catch exception with try/catch -object(domexception)#%d (6) { +object(DOMException)#%d (6) { ["code"]=> int(3) } --- Don't catch exception with try/catch -Fatal error: Uncaught exception 'domexception' with message 'Hierarchy Request Error' in %sdom003.php:%d +Fatal error: Uncaught exception 'DOMException' with message 'Hierarchy Request Error' in %sdom003.php:%d Stack trace: #0 {main} thrown in %sdom003.php on line %d diff --git a/ext/dom/tests/dom006.phpt b/ext/dom/tests/dom006.phpt index 7f393003d5..b8e8ed1724 100644 --- a/ext/dom/tests/dom006.phpt +++ b/ext/dom/tests/dom006.phpt @@ -6,12 +6,6 @@ Test 6: Extends Test createElement("title"); $titleElement->appendChild($this->createTextNode($title));