fetchOffsetResponse() public method

decode fetch offset response
public fetchOffsetResponse ( ) : array
return array
Example #1
0
 /**
  * testFetchOffsetResponseNotData
  *
  * @access public
  * @return void
  */
 public function testFetchOffsetResponseNotData()
 {
     $this->setData(Decoder::Khex2bin('00000000'));
     $decoder = new \Kafka\Protocol\Decoder($this->stream);
     try {
         $actual = $decoder->fetchOffsetResponse();
     } catch (\Kafka\Exception\Protocol $e) {
         $this->assertSame('fetch offset response invalid.', $e->getMessage());
     }
 }