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

1.1       misho       1: --TEST--
                      2: DOMDocumentFragment::appendXML() with unbound fragment.
                      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: $fragment = new DOMDocumentFragment();
                     11: $fragment->appendXML('<bait>crankbait</bait>');
                     12: $document->appendChild($fragment);
                     13: ?>
                     14: --EXPECTF--
                     15: Fatal error: Uncaught exception 'DOMException' with message 'No Modification Allowed Error' in %s:%d
                     16: Stack trace:
                     17: #0 %s(%d): DOMDocumentFragment->appendXML('<bait>crankbait...')
                     18: #1 {main}
                     19:   thrown in %s on line %d

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