You are here

public function PHPUnit_Util_Log_JUnit::flush in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Util/Log/JUnit.php \PHPUnit_Util_Log_JUnit::flush()

Flush buffer and close output.

Overrides PHPUnit_Util_Printer::flush

File

vendor/phpunit/phpunit/src/Util/Log/JUnit.php, line 107

Class

PHPUnit_Util_Log_JUnit
A TestListener that generates a logfile of the test execution in XML markup.

Code

public function flush() {
  if ($this->writeDocument === true) {
    $this
      ->write($this
      ->getXML());
  }
  parent::flush();
}