mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00

In ext/dom all the tests with a EXPECTF section starting by "Fatal error: Uncaught" have been updated to use the faster EXPECT
18 lines
412 B
PHP
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
|