We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 628ee29 commit fe314c4Copy full SHA for fe314c4
pkg/snsqs/Tests/SnsQsProducerTest.php
@@ -40,7 +40,7 @@ public function testCouldBeConstructedWithRequiredArguments()
40
public function testShouldThrowIfMessageIsInvalidType()
41
{
42
$this->expectException(InvalidMessageException::class);
43
- $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+/');
44
45
$producer = new SnsQsProducer($this->createSnsContextMock(), $this->createSqsContextMock());
46
0 commit comments