You are here

public function PHPUnit_Framework_TestFailure::getExceptionAsString in Zircon Profile 8

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

Returns a description for the thrown exception.

@since Method available since Release 3.4.0

Return value

string

File

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

Class

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

Code

public function getExceptionAsString() {
  return self::exceptionToString($this->thrownException);
}