public function testFileContentMatchesXML() { $root = new SimpleDOM('<root><child /></root>'); $filepath = $this->tempfile(); $success = $root->asPrettyXML($filepath); $this->assertXmlStringEqualsXmlFile($filepath, $root->asXML()); }