public function PHPUnit_Framework_AssertionFailedError::toString

Wrapper for getMessage() which is declared as final.

Return value

string

Overrides PHPUnit_Framework_SelfDescribing::toString

1 method overrides PHPUnit_Framework_AssertionFailedError::toString()
PHPUnit_Framework_ComparisonFailure::toString in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/ComparisonFailure.php

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/AssertionFailedError.php, line 64

Class

PHPUnit_Framework_AssertionFailedError
Thrown when an assertion failed.

Code

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