public function testAllSuccess()
 {
     Buffer::packInt8u($payload, ZCLStatus::SUCCESS);
     $frame = new WriteAttributesResponseCommand($payload);
     $this->assertTrue($frame->isSuccess());
     $this->assertEquals("0x00", $frame->displayFrame());
 }
 public function testSetFrame()
 {
     $frame = new WriteAttributesResponseCommand($this->zcl_str);
     $records = $frame->getWriteAttributeStatusRecords();
     $this->assertEquals(2, count($records));
     $this->assertEquals($this->zcl_write_attribute_status_record_0, $records[0]);
     $this->assertEquals($this->zcl_write_attribute_status_record_1, $records[1]);
 }