/** * @expectedException DOMException */ public function testWrongDocument() { $root = new SXE('<root />'); $node = new SXE('<node />'); try { $root->removeChild($node); } catch (DOMException $e) { $this->assertSame(DOM_WRONG_DOCUMENT_ERR, $e->code); throw $e; } }