ParaTest\Logging\JUnit\Writer::write PHP Method

write() public method

Write the xml structure to a file path
public write ( $path )
$path
    public function write($path)
    {
        file_put_contents($path, $this->getXml());
    }

Usage Example

Esempio n. 1
0
 /**
  * Write output to JUnit format if requested
  */
 private function log()
 {
     if (!isset($this->options->filtered['log-junit'])) {
         return;
     }
     $output = $this->options->filtered['log-junit'];
     $writer = new Writer($this->interpreter, $this->options->path);
     $writer->write($output);
 }