--TEST--
DOMParentNode::append() with DOMNode from wrong document throws exception
--EXTENSIONS--
dom
--FILE--
loadXML('');
$dom2 = new DOMDocument;
$dom2->loadXML('');
$element = $dom1->documentElement;
try {
$element->$method($dom2->documentElement->firstChild);
echo "FAIL";
} catch (DOMException $e) {
echo $e->getMessage() . "\n";
}
}
test("append");
test("prepend");
?>
--EXPECT--
Wrong Document Error
Wrong Document Error