public function PHPUnit_Framework_TestCase::hasOutput

@since Method available since Release 3.6.0

Return value

string

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php, line 394

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

public function hasOutput() {
  if (strlen($this->output) === 0) {
    return FALSE;
  }
  if ($this->outputExpectedString !== NULL || $this->outputExpectedRegex !== NULL || $this->hasPerformedExpectationsOnOutput) {
    return FALSE;
  }
  return TRUE;
}