Skip to content

Commit fe314c4

Browse files
Fix tests and test setup
1 parent 628ee29 commit fe314c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/snsqs/Tests/SnsQsProducerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testCouldBeConstructedWithRequiredArguments()
4040
public function testShouldThrowIfMessageIsInvalidType()
4141
{
4242
$this->expectException(InvalidMessageException::class);
43-
$this->expectExceptionMessage('The message must be an instance of Enqueue\SnsQs\SnsQsMessage but it is Double\Message\P4');
43+
$this->expectExceptionMessageMatches('/The message must be an instance of Enqueue\\\\SnsQs\\\\SnsQsMessage but it is Double\\\\Message\\\\P\d+/');
4444

4545
$producer = new SnsQsProducer($this->createSnsContextMock(), $this->createSqsContextMock());
4646

0 commit comments

Comments
 (0)