コード例 #1
0
ファイル: appendChild.php プロジェクト: laiello/simpledom
 public function testChild()
 {
     $root = new SimpleDOM('<root><child /></root>');
     $new = new SimpleDOM('<new />');
     $root->appendChild($new);
     $this->assertXmlStringEqualsXmlString($root->asXML(), '<root><child /><new /></root>');
 }