Skip to content

Commit

Permalink
Revert "ExceptionMessage constraint - adjust messages"
Browse files Browse the repository at this point in the history
This reverts commit f661839.
  • Loading branch information
sebastianbergmann committed Oct 10, 2018
1 parent b8e0fce commit 0e71b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Framework/Constraint/ExceptionMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function failureDescription($other)
}

return \sprintf(
"exception message '%s' equals '%s'",
"exception message '%s' contains '%s'",
$other->getMessage(),
$this->expectedMessage
);
Expand All @@ -74,6 +74,6 @@ public function toString()
return 'exception message is empty';
}

return 'exception message equals ';
return 'exception message contains ';
}
}

0 comments on commit 0e71b9b

Please sign in to comment.