public function testNoRef() { $root = new SXE('<root><child /></root>'); $new = new SXE('<new />'); $return = $root->insertBefore($new); $this->assertXmlStringEqualsXmlString('<root><child /><new /></root>', $root->asXML()); $this->assertSame(dom_import_simplexml($root->new), dom_import_simplexml($return)); }