You are here

public function PHPUnit_Framework_TestResult::wasSuccessful in Zircon Profile 8

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

Returns whether the entire test was successful or not.

Return value

bool

File

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

Class

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

Code

public function wasSuccessful() {
  return empty($this->errors) && empty($this->failures);
}