]> granicus.if.org Git - php/commitdiff
Fix tests
authorMarcus Boerger <helly@php.net>
Mon, 29 Mar 2004 20:54:13 +0000 (20:54 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 29 Mar 2004 20:54:13 +0000 (20:54 +0000)
ext/dom/tests/dom001.phpt
ext/dom/tests/dom003.phpt
ext/dom/tests/dom006.phpt

index a0c78fbb0a19f839d92cedf22f92af8a4c049e60..01b9fec3c4acd40223249ab33bdc07829a6c1335 100644 (file)
@@ -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);
 
index 40ddb1f775e66c52524bfdddd382cfd53721dd03..e3aa26e05c49c895d489ee7aea1b0fa6040630ff 100644 (file)
@@ -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
index 7f393003d5085a40881c8e1fd6127864817030f9..b8e8ed172440a07b5470daff9979bdc47075a427 100644 (file)
@@ -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));