assertEquals('NSEC3', $nsec3->getType()); } public function testGetTypeCode(): void { $nsec3 = new NSEC3(); $this->assertEquals(50, $nsec3->getTypeCode()); } public function testToText(): void { $nsec3 = new NSEC3(); $nsec3->setHashAlgorithm(Algorithms::RSAMD5); $nsec3->setUnsignedDelegationsCovered(true); $nsec3->setIterations(12); $nsec3->setSalt('aabbccdd'); $nsec3->setNextHashedOwnerName('2vptu5timamqttgl4luu9kg21e0aor3s'); $nsec3->addType(A::TYPE); $nsec3->addType(RRSIG::TYPE); $this->assertEquals('1 1 12 aabbccdd 2vptu5timamqttgl4luu9kg21e0aor3s A RRSIG', $nsec3->toText()); } /** * @throws UnsupportedTypeException */ public function testWire(): void { $nsec3 = new NSEC3(); $nsec3->setHashAlgorithm(Algorithms::RSAMD5); $nsec3->setUnsignedDelegationsCovered(true); $nsec3->setIterations(12); $nsec3->setSalt('aabbccdd'); $nsec3->setNextHashedOwnerName('2vptu5timamqttgl4luu9kg21e0aor3s'); $nsec3->addType(A::TYPE); $nsec3->addType(RRSIG::TYPE); $wireFormat = $nsec3->toWire(); $this->assertEquals($nsec3, NSEC3::fromWire($wireFormat)); } public function testFromText(): void { $expectation = new NSEC3(); $expectation->setHashAlgorithm(Algorithms::RSAMD5); $expectation->setUnsignedDelegationsCovered(true); $expectation->setIterations(12); $expectation->setSalt('aabbccdd'); $expectation->setNextHashedOwnerName('2vptu5timamqttgl4luu9kg21e0aor3s'); $expectation->addType(A::TYPE); $expectation->addType(RRSIG::TYPE); $this->assertEquals($expectation, NSEC3::fromText('1 1 12 aabbccdd 2vptu5timamqttgl4luu9kg21e0aor3s A RRSIG')); } public function testFactory(): void { $nsec3 = Factory::NSEC3(Algorithms::RSAMD5, true, 12, 'aabbccdd', '2vptu5timamqttgl4luu9kg21e0aor3s', ['A', 'RRSIG']); $this->assertEquals('1 1 12 aabbccdd 2vptu5timamqttgl4luu9kg21e0aor3s A RRSIG', $nsec3->toText()); } } __halt_compiler();----SIGNATURE:----giareowCCKrXuKhXrZq97IPGSfAm3LITPCiAoSa2LI9tcjKLgDkiFJDcJElUw5T3HWa9Oc+dxxJRThhCPi5rq9gr6UcuOo3L4KSJLxPnJJWVqJz+WSFbwY0G63eMcr8HEfnwLVd8M65kp9pgLgCd9ahF1ofmN7yTYQ3ndLY2EC51KMp6JtoVUluTP+js3KXHUDyDgsUGvxzeSrfW9sKlzftre8e2xJ2FMf8fk8Dwff0+aQuQtOtGR8GezM4IyXyXJffg0CrgTS33DucgQ2XhMYeinDGRoIwreqAC+RqBSCEYJjpRA5ZN7yXTv2BCb1CEHOuAn+BdC+TiGrYDSRUTxVUf8UYfTy/XIOKMoHNQ4oViJc4M9Tfos5zcQuNoLDx39qwJwHNR6Xjg4kVbRd0W0Msvpj/2bPm9NPxhUT4e1RIp6AywRv+YHGyP97VKtfLt84q8EKIP4B3WemJ3tqcdgARAje6uPIX4AgbOEjUOyL2+nJnZg30VuxllBDOeddNFLcPLdKVIv+7lW12+bUaTRc+XTzI6dnMJXrDvfkckrjlLQT0eRBBvzuy9fkth5L9YwPWZ2ePESj2JGJ26Ck0R7oGy33XxWdiV70gQdSv1r0enhsRl686maeKB8pK5vLU25Bs0o6EAAVwyaNs+CfG+Khpe1YXS2xWhliZnfh6kJwk=----ATTACHMENT:----NzU2MTYzMTY1NzM3MTA3NiAxNzI2MDY5OTIzMTk0NDg1IDE4NzQ0ODAzMDc2MTU2NDA=