You are here

public function PHPUnit_Framework_TestResult::flushListeners in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestResult.php \PHPUnit_Framework_TestResult::flushListeners()

Flushes all flushable TestListeners.

@since Method available since Release 3.0.0

File

vendor/phpunit/phpunit/src/Framework/TestResult.php, line 179

Class

PHPUnit_Framework_TestResult
A TestResult collects the results of executing a test case.

Code

public function flushListeners() {
  foreach ($this->listeners as $listener) {
    if ($listener instanceof PHPUnit_Util_Printer) {
      $listener
        ->flush();
    }
  }
}