You are here

public function PHPUnit_Framework_TestFailure::toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestFailure.php \PHPUnit_Framework_TestFailure::toString()

Returns a short description of the failure.

Return value

string

File

vendor/phpunit/phpunit/src/Framework/TestFailure.php, line 57

Class

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

Code

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