From fe314c4bdfb1efa7fcce9f5ea4b933750baa3ca1 Mon Sep 17 00:00:00 2001 From: Alexandru Busuioc Date: Wed, 19 Jun 2024 12:07:04 +0100 Subject: [PATCH] Fix tests and test setup --- pkg/snsqs/Tests/SnsQsProducerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/snsqs/Tests/SnsQsProducerTest.php b/pkg/snsqs/Tests/SnsQsProducerTest.php index aa3e28971..f0558b522 100644 --- a/pkg/snsqs/Tests/SnsQsProducerTest.php +++ b/pkg/snsqs/Tests/SnsQsProducerTest.php @@ -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());