You are here

public function PHPUnit_Util_Log_JUnit::setWriteDocument in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Util/Log/JUnit.php \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

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

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