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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy