assertEquals('NSEC3PARAM', $nsec3param->getType()); } public function testGetTypeCode(): void { $nsec3param = new NSEC3PARAM(); $this->assertEquals(51, $nsec3param->getTypeCode()); } public function testToText(): void { $nsec3param = new NSEC3PARAM(); $nsec3param->setHashAlgorithm(Algorithms::RSAMD5); $nsec3param->setSalt('d9143ec07c5977ae'); $nsec3param->setIterations(55); $nsec3param->setFlags(0); $expectation = '1 0 55 d9143ec07c5977ae'; $this->assertEquals($expectation, $nsec3param->toText()); } public function testToWire(): void { $nsec3param = new NSEC3PARAM(); $nsec3param->setHashAlgorithm(Algorithms::RSAMD5); $nsec3param->setSalt('d9143ec07c5977ae'); $nsec3param->setIterations(55); $nsec3param->setFlags(0); $expectation = chr(1).chr(0).pack('n', 55).chr(8).hex2bin('d9143ec07c5977ae'); $this->assertEquals($expectation, $nsec3param->toWire()); } public function testFromText(): void { $expectation = new NSEC3PARAM(); $expectation->setHashAlgorithm(Algorithms::RSAMD5); $expectation->setSalt('d9143ec07c5977ae'); $expectation->setIterations(55); $expectation->setFlags(0); $this->assertEquals($expectation, NSEC3PARAM::fromText('1 0 55 d9143ec07c5977ae')); } public function testFromWire(): void { $expectation = new NSEC3PARAM(); $expectation->setHashAlgorithm(Algorithms::RSAMD5); $expectation->setSalt('d9143ec07c5977ae'); $expectation->setIterations(55); $expectation->setFlags(0); $wireFormat = chr(1).chr(0).pack('n', 55).chr(8).hex2bin('d9143ec07c5977ae'); $this->assertEquals($expectation, NSEC3PARAM::fromWire($wireFormat)); } public function testFactory(): void { $nsec3param = Factory::NSEC3PARAM(Algorithms::RSAMD5, 0, 55, 'd9143ec07c5977ae'); $this->assertEquals(1, $nsec3param->getHashAlgorithm()); $this->assertEquals(0, $nsec3param->getFlags()); $this->assertEquals(55, $nsec3param->getIterations()); $this->assertEquals('d9143ec07c5977ae', $nsec3param->getSalt()); } } __halt_compiler();----SIGNATURE:----KZj622jLN49PSxefSPzfpxMYMf1FtpDYQeT4aOvgWmFyLrCIKAsaK7rPfkgEH4wcRDLGrQqBqagXymgnkxqzngXJhHCRfr5gfPsTA2+gLIUksAFSyhrMYm9gwyX4ELP9iABhK1B3upaN2A6CoR5hzXXKCCIa0Ko73qQ2EQne2n7Hc1+29n8xfNkSKd4/fwgoH37AdQLBlA2Af2vcObKZduHEPboS5CH6MmPXnu02gaERcfEHRRH/IOcxNkIYiAsqrbmhZfXHyjn3tBx7cjc/Ih7xDHTojGjIv/HVt2nzCwhbn/pWRTlU9rYvB+qW2HMiJQwSwc7dxCb8MagX5QUOYacKQh6PvWIJMeOEBTgfer3j8wXym4X6AHx4Hyg08pUXhTsO54MrQFYretJd7Vl/G8u8JPbsuDKd+m1To+RiQ12O4Pxdd53JhB6eZ3hwGk48zp/TJKUsLXvVvZH4rcl/kf2X0Czp0mKTyadQo2motlvzKMIxd74P65up5lu9y/lhUCUpv0YazYQT29K3UjLXrBmzn/RhkBJ/1RL18ku3zXCzfo9tuRcb2I2ahBxW+1mOu9pzXbqdEq0NfL3jX/sUEK8gbzsyRQQ5NFq3viDN+T9C7qC5QcS6A5kb/4cwIHi7hlmf4RTNh7xVODtkvLWtXloOs3BFSVuG2DkXTQCWw50=----ATTACHMENT:----ODk5NTQwNzc1OTY0ODQ5NSA2NzE0MDgzMDc5MTM5Njg5IDY5Mzc0MjExMDMxNzIzMzA=