Skip to content

Commit

Permalink
attempt fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Aug 31, 2017
1 parent 387f5c6 commit 4132833
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/rdkafka/Tests/JsonSerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ public function testThrowIfFailedToEncodeMessageToJson()
{
$serializer = new JsonSerializer();

$message = new RdKafkaMessage('theBody', ['aProp' => STDIN]);
$resource = fopen(__FILE__, 'r');

//guard
$this->assertInternalType('resource', $resource);

$message = new RdKafkaMessage('theBody', ['aProp' => $resource]);

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

0 comments on commit 4132833

Please sign in to comment.