diff --git a/src/Framework/Constraint/ExceptionMessage.php b/src/Framework/Constraint/ExceptionMessage.php index 721a5c45e3b..c8e46959a59 100644 --- a/src/Framework/Constraint/ExceptionMessage.php +++ b/src/Framework/Constraint/ExceptionMessage.php @@ -59,7 +59,7 @@ protected function failureDescription($other) } return \sprintf( - "exception message '%s' equals '%s'", + "exception message '%s' contains '%s'", $other->getMessage(), $this->expectedMessage ); @@ -74,6 +74,6 @@ public function toString() return 'exception message is empty'; } - return 'exception message equals '; + return 'exception message contains '; } }