Annotation of embedaddon/php/ext/dom/tests/DOMDocumentFragment_appendXML_error_003.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: DOMDocumentFragment::appendXML() with unbalanced chunks.
                      3: --CREDITS--
                      4: Eric Lee Stewart <ericleestewart@gmail.com>
                      5: # TestFest Atlanta 2009-05-24
                      6: --SKIPIF--
                      7: <?php require_once('skipif.inc'); ?>
                      8: --FILE--
                      9: <?php
                     10: $document = new DOMDocument;
                     11: $root = $document->createElement('root');
                     12: $document->appendChild($root);
                     13: 
                     14: $fragment = $document->createDocumentFragment();
                     15: @$fragment->appendXML('<foo>is<bar>great</foo>');
                     16: $root->appendChild($fragment);
                     17: ?>
                     18: --EXPECTF--
                     19: Warning: DOMNode::appendChild(): Document Fragment is empty in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>