Skip to content

Commit 28b8d30

Browse files
committed
attempt fix test.
1 parent 48461c9 commit 28b8d30

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: pkg/rdkafka/Tests/JsonSerializerTest.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ public function testThrowIfFailedToEncodeMessageToJson()
3737
{
3838
$serializer = new JsonSerializer();
3939

40-
$message = new RdKafkaMessage('theBody', ['aProp' => STDIN]);
40+
$resource = fopen(__FILE__, 'r');
41+
42+
//guard
43+
$this->assertInternalType('resource', $resource);
44+
45+
$message = new RdKafkaMessage('theBody', ['aProp' => $resource]);
4146

4247
$this->expectException(\LogicException::class);
4348
$this->expectExceptionMessage('The malformed json given.');

0 commit comments

Comments
 (0)