/** * testCommitOffsetResponseNotData * * @access public * @return void */ public function testCommitOffsetResponseNotData() { $this->setData(Decoder::Khex2bin('00000000')); $decoder = new \Kafka\Protocol\Decoder($this->stream); try { $actual = $decoder->commitOffsetResponse(); } catch (\Kafka\Exception\Protocol $e) { $this->assertSame('commit offset response invalid.', $e->getMessage()); } }