Пример #1
0
 public function testReverse()
 {
     $old_zcl = ZCLFrame::construct(ReadAttributesCommand::construct([AttributeIdentifier::construct(0x2)]), 0x4e47, ZCLFrame::DIRECTION_SERVER_TO_CLIENT, ZCLFrame::DEFAULT_RESPONSE_ENABLED, 0x1);
     $old_zcl_frame = $old_zcl->getFrame();
     $new = new ZCLFrame($old_zcl_frame);
     $this->assertEquals($old_zcl_frame, $new->getFrame());
 }