Returns a description for the thrown exception.
@since Method available since Release 3.4.0
Return value
string
File
- drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestFailure.php, line 102
Class
- PHPUnit_Framework_TestFailure
- A TestFailure collects a failed test together with the caught exception.
Code
public function getExceptionAsString() {
return self::exceptionToString($this->thrownException);
}