From: Rob Richards Date: Wed, 17 May 2006 16:36:21 +0000 (+0000) Subject: add tests X-Git-Tag: php-5.2.0RC1~529 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f95fa95ccdcd111f901009f47d40c40d82d80dd;p=php add tests --- diff --git a/ext/dom/tests/bug37456.phpt b/ext/dom/tests/bug37456.phpt new file mode 100644 index 0000000000..904712f4b1 --- /dev/null +++ b/ext/dom/tests/bug37456.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug # 37456 (DOMElement->setAttribute() loops forever) +--SKIPIF-- + +--FILE-- +resolveExternals = true; +$doc->load(dirname(__FILE__)."/dom.xml"); + +$root = $doc->getElementsByTagName('foo')->item(0); +$root->setAttribute('bar', '>'); +$attr = $root->setAttribute('bar', 'newval'); +print $attr->nodeValue; + + +?> +--EXPECT-- + +newval + diff --git a/ext/dom/tests/dom.ent b/ext/dom/tests/dom.ent new file mode 100644 index 0000000000..987ff9dc0f --- /dev/null +++ b/ext/dom/tests/dom.ent @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/ext/dom/tests/dom.xml b/ext/dom/tests/dom.xml new file mode 100644 index 0000000000..09ac674e55 --- /dev/null +++ b/ext/dom/tests/dom.xml @@ -0,0 +1,8 @@ + + +%incent; +]> + + + \ No newline at end of file