public function PHPUnit_Util_Log_JUnit::flush

Flush buffer and close output.

Overrides PHPUnit_Util_Printer::flush

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Log/JUnit.php, line 149

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();
}