metadataResponse() public method

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