public function PHPUnit_Framework_TestFailure::toString

Returns a short description of the failure.

Return value

string

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestFailure.php, line 86

Class

PHPUnit_Framework_TestFailure
A TestFailure collects a failed test together with the caught exception.

Code

public function toString() {
  return sprintf('%s: %s', $this->failedTest
    ->toString(), $this->thrownException
    ->getMessage());
}