Skip to content

Commit

Permalink
Fix tests and test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbusu-motork committed Jun 19, 2024
1 parent 628ee29 commit fe314c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/snsqs/Tests/SnsQsProducerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function testCouldBeConstructedWithRequiredArguments()
public function testShouldThrowIfMessageIsInvalidType()
{
$this->expectException(InvalidMessageException::class);
$this->expectExceptionMessage('The message must be an instance of Enqueue\SnsQs\SnsQsMessage but it is Double\Message\P4');
$this->expectExceptionMessageMatches('/The message must be an instance of Enqueue\\\\SnsQs\\\\SnsQsMessage but it is Double\\\\Message\\\\P\d+/');

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

Expand Down

0 comments on commit fe314c4

Please sign in to comment.