/** * If the status field is not set to SUCCESS, all fields except the direction and * attribute identifier fields shall be omitted. */ public function testErrorFrame() { $record = new AttributeReportingConfigurationStatusRecord(); $record->setStatus(ZCLStatus::UNSUPPORTED_ATTRIBUTE); $record->setAttributeId(0x1234); $record->setDatatypeId(0x23); $this->assertEquals("0x86 0x00 0x34 0x12", $record->displayFrame()); }