You are here

public function PHPUnit_Framework_TestCase::getActualOutput in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::getActualOutput()

@since Method available since Release 3.6.0

Return value

string

File

vendor/phpunit/phpunit/src/Framework/TestCase.php, line 359

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

public function getActualOutput() {
  if (!$this->outputBufferingActive) {
    return $this->output;
  }
  else {
    return ob_get_contents();
  }
}