php-src/ext/dom/tests/DOMDocumentFragment_appendXML_error_002.phpt
Fabien Villepinte 601aef3468 Replace EXPECTF by EXPECT
In ext/dom all the tests with a EXPECTF section
starting by "Fatal error: Uncaught" have been updated
to use the faster EXPECT
2019-10-26 16:05:02 +02:00

18 lines
412 B
PHP

--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