summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-03-29 20:54:13 +0000
committerMarcus Boerger <helly@php.net>2004-03-29 20:54:13 +0000
commit4dc6fe7f62d56f27fc499414d37d5ef53e2569d8 (patch)
treeb1d4748f40ccdd19cb90e1b5755b92807080b08d /ext
parentb6321d4e8aae3a25cc8a85829ea7b754021698d7 (diff)
downloadphp-git-4dc6fe7f62d56f27fc499414d37d5ef53e2569d8.tar.gz
Fix tests
Diffstat (limited to 'ext')
-rw-r--r--ext/dom/tests/dom001.phpt3
-rw-r--r--ext/dom/tests/dom003.phpt4
-rw-r--r--ext/dom/tests/dom006.phpt6
3 files changed, 4 insertions, 9 deletions
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
<?php
Class books extends domDocument {
- function __construct() {
- /* We must first call the constructor for the parent to create the document
- otherwise this class will not work */
- parent::__construct();
- }
-
function addBook($title, $author) {
$titleElement = $this->createElement("title");
$titleElement->appendChild($this->createTextNode($title));