Skip to content

Commit 4132833

Browse files
committed
attempt fix test.
1 parent 387f5c6 commit 4132833

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎pkg/rdkafka/Tests/JsonSerializerTest.php‎

Lines changed: 6 additions & 1 deletion
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)