You are here

public function PHPUnit_Framework_AssertionFailedError::toString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Framework/AssertionFailedError.php \PHPUnit_Framework_AssertionFailedError::toString()

Wrapper for getMessage() which is declared as final.

Return value

string

Overrides PHPUnit_Framework_SelfDescribing::toString

File

vendor/phpunit/phpunit/src/Framework/AssertionFailedError.php, line 23

Class

PHPUnit_Framework_AssertionFailedError
Thrown when an assertion failed.

Code

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