public function PHPUnit_Util_Log_JUnit::setWriteDocument

Enables or disables the writing of the document in flush().

This is a "hack" needed for the integration of PHPUnit with Phing.

@since Method available since Release 2.2.0

Return value

string

File

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

Class

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

Code

public function setWriteDocument($flag) {
  if (is_bool($flag)) {
    $this->writeDocument = $flag;
  }
}