public function PHPUnit_Framework_TestResult::wasSuccessful

Returns whether the entire test was successful or not.

Return value

boolean

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php, line 904

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);
}