--TEST-- DOMNode::insertBefore() should fail if node belongs to another document --CREDITS-- Knut Urdalen --SKIPIF-- --FILE-- createElement("foo"); $node_in_doc2 = $doc2->createElement("bar"); try { $node_in_doc2->insertBefore($node_in_doc1); } catch(DOMException $e) { echo $e->getMessage(); } ?> --EXPECT-- Wrong Document Error