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