You are here

public function PHPUnit_Framework_TestCase::hasOutput in Zircon Profile 8

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

@since Method available since Release 3.6.0

Return value

bool

File

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

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
    ->hasExpectationOnOutput()) {
    return false;
  }
  return true;
}