From f661839d1a0d4947a782b8da7dd455cf960db191 Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Sat, 6 Oct 2018 10:30:13 +0200 Subject: [PATCH] ExceptionMessage constraint - adjust messages --- src/Framework/Constraint/ExceptionMessage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Framework/Constraint/ExceptionMessage.php b/src/Framework/Constraint/ExceptionMessage.php index c8e46959a59..721a5c45e3b 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' contains '%s'", + "exception message '%s' equals '%s'", $other->getMessage(), $this->expectedMessage ); @@ -74,6 +74,6 @@ public function toString() return 'exception message is empty'; } - return 'exception message contains '; + return 'exception message equals '; } }