offsetResponse() public method

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