blob: 4e7e28f298d4506b5ef9d8c5ec3a502376150538 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
DOMDocumentFragment::appendXML() with unbound fragment.
--CREDITS--
Eric Lee Stewart <ericleestewart@gmail.com>
# TestFest Atlanta 2009-05-24
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$fragment = new DOMDocumentFragment();
try {
$fragment->appendXML('<bait>crankbait</bait>');
} catch (DOMException $e) {
echo $e->getMessage();
}
?>
--EXPECT--
No Modification Allowed Error
|