Skip to content

Commit 8f3e96f

Browse files
keradussebastianbergmann
authored andcommitted
Make ExceptionMessage strict
1 parent 488da46 commit 8f3e96f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Framework/Constraint/ExceptionMessage.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ public function __construct($expected)
3636
*/
3737
protected function matches($other)
3838
{
39-
if ($this->expectedMessage === '') {
40-
return $other->getMessage() === '';
41-
}
42-
43-
return \strpos($other->getMessage(), $this->expectedMessage) !== false;
39+
return $other->getMessage() === $this->expectedMessage;
4440
}
4541

4642
/**

0 commit comments

Comments
 (0)