--TEST-- Interop Test: Import from SimpleXML --EXTENSIONS-- dom simplexml --FILE-- ownerDocument->saveXML(); // This should fail because it has been imported already above in legacy DOM try { Dom\import_simplexml($s); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- The Grapes of Wrath John Steinbeck The Pearl John Steinbeck Dom\import_simplexml(): Argument #1 ($node) must not be already imported as a DOMNode