You are here

public function ComparisonFailure::toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/comparator/src/ComparisonFailure.php \SebastianBergmann\Comparator\ComparisonFailure::toString()

Return value

string

File

vendor/sebastian/comparator/src/ComparisonFailure.php, line 125

Class

ComparisonFailure
Thrown when an assertion for string equality failed.

Namespace

SebastianBergmann\Comparator

Code

public function toString() {
  return $this->message . $this
    ->getDiff();
}