We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48461c9 commit 28b8d30Copy full SHA for 28b8d30
pkg/rdkafka/Tests/JsonSerializerTest.php
@@ -37,7 +37,12 @@ public function testThrowIfFailedToEncodeMessageToJson()
37
{
38
$serializer = new JsonSerializer();
39
40
- $message = new RdKafkaMessage('theBody', ['aProp' => STDIN]);
+ $resource = fopen(__FILE__, 'r');
41
+
42
+ //guard
43
+ $this->assertInternalType('resource', $resource);
44
45
+ $message = new RdKafkaMessage('theBody', ['aProp' => $resource]);
46
47
$this->expectException(\LogicException::class);
48
$this->expectExceptionMessage('The malformed json given.');
0 commit comments