1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/dom/tests/DOM4_DOMNode_removeDanglingElement.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

20 lines
293 B
PHP

--TEST--
DOMNode::remove() dangling element
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$dom = new DOMDocument();
$element = $dom->createElement('test');
try {
$element->remove();
} catch (DOMException $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Not Found Error