function Facade::saveDocument
Throws
2 calls to Facade::saveDocument()
- Facade::process in vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Facade.php - Facade::processFile in vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Facade.php
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Facade.php, line 268
Class
Namespace
SebastianBergmann\CodeCoverage\Report\XmlCode
private function saveDocument(DOMDocument $document, string $name) : void {
$filename = sprintf('%s/%s.xml', $this->targetDirectory(), $name);
$document->formatOutput = true;
$document->preserveWhiteSpace = false;
$this->initTargetDirectory(dirname($filename));
file_put_contents($filename, $this->documentAsString($document));
}