コード例 #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());
 }
コード例 #2
0
 public function testReverse()
 {
     $old_zcl_frame = $this->zcl_frame->getFrame();
     $new = new ZCLFrame($old_zcl_frame);
     $this->assertEquals($old_zcl_frame, $new->getFrame());
 }