Permalink
Browse files

Implement PHPUnit_Framework_ComparisonFailure::toString().

  • Loading branch information...
1 parent 3e0e9b8 commit 452f50a86c9c96f1920945b875b756c184080b21 @sebastianbergmann committed Oct 18, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 PHPUnit/Framework/ComparisonFailure.php
@@ -154,4 +154,12 @@ public function getDiff()
? PHPUnit_Util_Diff::diff($this->expectedAsString, $this->actualAsString)
: '';
}
+
+ /**
+ * @return string
+ */
+ public function toString()
+ {
+ return $this->message . $this->getDiff();
+ }
}

0 comments on commit 452f50a

Please sign in to comment.