helly Mon Mar 29 15:54:14 2004 EDT Modified files: /php-src/ext/dom/tests dom001.phpt dom003.phpt dom006.phpt Log: Fix tests http://cvs.php.net/diff.php/php-src/ext/dom/tests/dom001.phpt?r1=1.2&r2=1.3&ty=u Index: php-src/ext/dom/tests/dom001.phpt diff -u php-src/ext/dom/tests/dom001.phpt:1.2 php-src/ext/dom/tests/dom001.phpt:1.3 --- php-src/ext/dom/tests/dom001.phpt:1.2 Sat Nov 29 15:40:18 2003 +++ php-src/ext/dom/tests/dom001.phpt Mon Mar 29 15:54:13 2004 @@ -63,8 +63,9 @@ 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); http://cvs.php.net/diff.php/php-src/ext/dom/tests/dom003.phpt?r1=1.4&r2=1.5&ty=u Index: php-src/ext/dom/tests/dom003.phpt diff -u php-src/ext/dom/tests/dom003.phpt:1.4 php-src/ext/dom/tests/dom003.phpt:1.5 --- php-src/ext/dom/tests/dom003.phpt:1.4 Thu Jan 22 17:12:21 2004 +++ php-src/ext/dom/tests/dom003.phpt Mon Mar 29 15:54:13 2004 @@ -21,13 +21,13 @@ ?> --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 http://cvs.php.net/diff.php/php-src/ext/dom/tests/dom006.phpt?r1=1.1&r2=1.2&ty=u Index: php-src/ext/dom/tests/dom006.phpt diff -u php-src/ext/dom/tests/dom006.phpt:1.1 php-src/ext/dom/tests/dom006.phpt:1.2 --- php-src/ext/dom/tests/dom006.phpt:1.1 Mon Oct 27 12:51:55 2003 +++ php-src/ext/dom/tests/dom006.phpt Mon Mar 29 15:54:13 2004 @@ -6,12 +6,6 @@ <?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));
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php