Skip to content

Commit 00b3bc5

Browse files
committed
[rdkafka] fix tests.
1 parent 71afeae commit 00b3bc5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎pkg/rdkafka/Tests/JsonSerializerTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testThrowIfFailedToEncodeMessageToJson()
4040
$message = new RdKafkaMessage('theBody', ['aProp' => STDIN]);
4141

4242
$this->expectException(\LogicException::class);
43-
$this->expectExceptionMessage('The malformed json given. Error 8 and message Type is not supported');
43+
$this->expectExceptionMessage('The malformed json given.');
4444
$serializer->toString($message);
4545
}
4646

@@ -62,7 +62,7 @@ public function testThrowIfFailedToDecodeJsonToMessage()
6262
$serializer = new JsonSerializer();
6363

6464
$this->expectException(\LogicException::class);
65-
$this->expectExceptionMessage('The malformed json given. Error 2 and message State mismatch (invalid or malformed JSON)');
65+
$this->expectExceptionMessage('The malformed json given.');
6666
$serializer->toMessage('{]');
6767
}
6868
}

0 commit comments

Comments
 (0)