Example #1
0
 public function testZCLInclusion()
 {
     $zcl_frame = ZCLFrame::construct(ReadAttributesCommand::construct([]));
     $aps_frame = new APSFrame();
     $aps_frame->setPayloadObject($zcl_frame);
     // The APS payload should be the same as the frame
     $this->assertEquals($zcl_frame->getFrame(), $aps_frame->getPayload());
     $this->assertEquals(APSFrame::FRAME_TYPE_DATA, $aps_frame->getFrameType());
 }