dis-bench / src /php /php-src /ext /dom /tests /DOM4_DOMNode_removeDanglingElement.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
264 Bytes
--TEST--
DOMNode::remove() dangling element
--EXTENSIONS--
dom
--FILE--
<?php
$dom = new DOMDocument();
$element = $dom->createElement('test');
try {
$element->remove();
} catch (DOMException $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Not Found Error