You are here

public function PHPUnit_Framework_TestFailure::exceptionMessage in Zircon Profile 8

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

Returns the exception's message.

Return value

string

File

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

Class

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

Code

public function exceptionMessage() {
  return $this
    ->thrownException()
    ->getMessage();
}