Annotation of embedaddon/php/ext/dom/tests/DOMAttr_ownerElement_error_001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Read $ownerElement with null parent.
3: --CREDITS--
4: Travis Pew
5: # TestFest Atlanta 2009-05-14
6: --SKIPIF--
7: <?php require_once('skipif.inc'); ?>
8: --FILE--
9: <?php
10:
11: $document = new DOMDocument;
12: $root = $document->createElement('root');
13: $document->appendChild($root);
14: $attr = $root->setAttribute('category', 'books');
15: $document->removeChild($root);
16: $root = null;
17: var_dump($attr->ownerElement);
18: ?>
19: --EXPECTF--
20: Warning: Couldn't fetch DOMAttr. Node no longer exists in %s on line %d
21:
22: Notice: Undefined property: DOMAttr::$ownerElement in %s on line %d
23: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>