public function testInclusionByStaticConstructor()
 {
     $base_frame = MgmtCacheReqCommand::construct(0xa1);
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Network\\MgmtCacheReqCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }
 public function testInclusionByStaticConstructor()
 {
     $base_frame = NodeDescRspCommand::constructFailure(Status::DEVICE_NOT_FOUND, 0xab12);
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Discovery\\NodeDescRspCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }
 public function testInclusionByStaticConstructor()
 {
     $base_frame = NwkAddrRspCommand::constructExtended(Status::SUCCESS, 123456, 0x77ae, 0x1, [0x1234, 0xabcd]);
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Discovery\\NwkAddrRspCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }
 public function testInclusionByStaticConstructor()
 {
     $base_frame = ExtendedSimpleDescRspCommand::constructSuccess(0x77ae, 0xa, 0x12, 0xab, 0xef, [0x1234, 0xabcd]);
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Discovery\\ExtendedSimpleDescRspCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }
 public function testInclusionByStaticConstructor()
 {
     $base_frame = MgmtRtgRspCommand::constructSuccess(80, 10, [RoutingDescriptor::construct(0x1234, RoutingDescriptor::VALIDATION_UNDERWAY, 1, 0, 1, 0xabcd), RoutingDescriptor::construct(0x2347, RoutingDescriptor::ACTIVE, 1, 1, 0, 0xabcd)]);
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Network\\MgmtRtgRspCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }
 public function testInclusionByStaticConstructor()
 {
     $base_frame = UserDescConfCommand::construct(Status::SUCCESS, 0xab12);
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Discovery\\UserDescConfCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }
 public function testInclusionByStaticConstructor()
 {
     $base_frame = SimpleDescReqCommand::construct(0x77ae, 0xab);
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Discovery\\SimpleDescReqCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }
 public function testInclusionByStaticConstructor()
 {
     $base_frame = ActiveEPRspCommand::constructSuccess(0xab12, [0x0, 0xa]);
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Discovery\\ActiveEPRspCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }
 public function testInclusionByStaticConstructor()
 {
     $base_frame = MgmtLqiRspCommand::constructSuccess(80, 10, [NeighborDescriptor::construct("3781220488658316", "3781220489559882", Status::SUCCESS, NeighborDescriptor::ZIGBEE_END_DEVICE, NeighborDescriptor::RECEIVER_ON_WHEN_IDLE, NeighborDescriptor::RELATION_NEIGHBOR_IS_SIBLING, NeighborDescriptor::NEIGHBOR_ACCEPTS_JOIN_REQUESTS_UNKNOWN, 0xf, 0xf0), NeighborDescriptor::construct("1231534523", "131412415445", Status::SUCCESS, NeighborDescriptor::ZIGBEE_COORDINATOR, NeighborDescriptor::RECEIVER_OFF_WHEN_IDLE, NeighborDescriptor::RELATION_NEIGHBOR_IS_CHILD, NeighborDescriptor::NEIGHBOR_IS_ACCEPTING_JOIN_REQUESTS, 0x1f, 0xf2)]);
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Network\\MgmtLqiRspCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }
 public function testInclusionByStaticConstructor()
 {
     $base_frame = IEEEAddrReqCommand::constructExtended(0x1234, 0x1);
     $transaction_id = 20;
     $parent = ZDPFrame::construct($base_frame, $transaction_id);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Discovery\\IEEEAddrReqCommand", $parent->getPayloadObject());
     $this->assertEquals($base_frame->displayFrame(), $parent->displayPayload());
 }
 public function testGetPayloadObject()
 {
     $command = NwkAddrReqCommand::constructSingle(0xbeef);
     $frame = ZDPFrame::construct($command, 0x12);
     $this->assertInstanceOf("Munisense\\Zigbee\\ZDP\\Discovery\\NwkAddrReqCommand", $frame->getPayloadObject());
 }