Permalink
Browse files

Put the cosmetic fix from [331] where it belongs.

  • Loading branch information...
1 parent 069ce37 commit 6ea9276e84233ecd5f3ec19e7573f6c53aaff326 @sebastianbergmann committed Nov 9, 2006
Showing with 5 additions and 3 deletions.
  1. +5 −1 PHPUnit/Framework/Constraint/Not.php
  2. +0 −2 PHPUnit/Framework/ExpectationFailedException.php
@@ -114,7 +114,11 @@ public function fail($other, $description)
*/
public function toString()
{
- return 'not ' . $this->constraint->toString();
+ return str_replace(
+ 'not is',
+ 'is not',
+ 'not ' . $this->constraint->toString()
+ );
}
}
?>
@@ -76,8 +76,6 @@ class PHPUnit_Framework_ExpectationFailedException extends PHPUnit_Framework_Ass
public function __construct($message, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL)
{
- $message = str_replace('> not is', '> is not', $message);
-
$this->comparisonFailure = $comparisonFailure;
$this->description = $message;

0 comments on commit 6ea9276

Please sign in to comment.