summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUwe Steinmann <steinm@php.net>2000-02-03 21:12:30 +0000
committerUwe Steinmann <steinm@php.net>2000-02-03 21:12:30 +0000
commit38fb57f9d6d286fd149c8b91c16d618e920bf63f (patch)
treeac665632983b0d2de8213579f49a3feb43228134 /tests
parentfb46032cbb7ee9b18445ec682562484301179998 (diff)
downloadphp-git-38fb57f9d6d286fd149c8b91c16d618e920bf63f.tar.gz
- some more testing
Diffstat (limited to 'tests')
-rw-r--r--tests/testdom9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/testdom b/tests/testdom
index 6964242dc6..3b850f4ef9 100644
--- a/tests/testdom
+++ b/tests/testdom
@@ -52,7 +52,7 @@ $xmlstr = "<?xml version='1.0'?>
$dom = dom($xmlstr);
echo "XML Version: ".$dom->version."\n";
-$dtd = $dom->intdtd();
+$dtd = $dom->dtd();
$rootnode = $dom->root();
/* The following line causes a segm fault if more than 5 methods are in
class node, see ext/domxml/domxml.c */
@@ -61,4 +61,11 @@ $attr = $rootnode->getattr("language");
/* if the above weren't there, php will probably crash somewhere after here */
output_node($rootnode);
+$doc = newxmldoc("1.0");
+$root = $doc->addroot("HTML");
+echo $root->name;
+$root->newchild("TITLE", "Hier der Titel");
+$root->newchild("BODY", "");
+echo $doc->dumpmem();
+
?>