public function testChild() { $root = new SXE('<root><child /></root>'); $new = new SXE('<new />'); $root->appendChild($new); $this->assertXmlStringEqualsXmlString($root->asXML(), '<root><child /><new /></root>'); }