assertEquals('NSEC3', $nsec3->getType()); } public function testGetTypeCode(): void { $nsec3 = new NSEC3(); $this->assertEquals(50, $nsec3->getTypeCode()); } /** * @dataProvider getDataProvider */ public function testToText( string $text, bool $unsignedDelegationsCovered, int $iterations, string $salt, string $nextOwnerName, array $types, string $nextHashedOwnerName, ): void { $nsec3 = new NSEC3(); $nsec3->setUnsignedDelegationsCovered($unsignedDelegationsCovered); $nsec3->setIterations($iterations); $nsec3->setSalt($salt); $nsec3->setNextOwnerName($nextOwnerName); $nsec3->setTypes($types); $nsec3->calculateNextOwnerHash(); $this->assertEquals($text, $nsec3->toText()); } /** * @dataProvider getDataProvider */ public function testWire( string $text, bool $unsignedDelegationsCovered, int $iterations, string $salt, string $nextOwnerName, array $types, string $nextHashedOwnerName, ): void { $nsec3 = new NSEC3(); $nsec3->setUnsignedDelegationsCovered($unsignedDelegationsCovered); $nsec3->setIterations($iterations); $nsec3->setSalt($salt); $nsec3->setNextHashedOwnerName(Base32Hex::decode($nextHashedOwnerName)); $nsec3->setTypes($types); $wireFormat = $nsec3->toWire(); $fromWire = new NSEC3(); $fromWire->fromWire($wireFormat); $this->assertEquals($nsec3, $fromWire); } /** * @dataProvider getDataProvider */ public function testFromText( string $text, bool $unsignedDelegationsCovered, int $iterations, string $salt, string $nextOwnerName, array $types, string $nextHashedOwnerName, ): void { $fromText = new NSEC3(); $fromText->fromText($text); $this->assertEquals($fromText->isUnsignedDelegationsCovered(), $unsignedDelegationsCovered); $this->assertEquals($fromText->getIterations(), $iterations); $this->assertEquals($fromText->getSalt(), $salt); $this->assertEquals($fromText->getTypes(), $types); $this->assertEquals($fromText->getNextHashedOwnerName(), Base32Hex::decode($nextHashedOwnerName)); } /** * @dataProvider getDataProvider */ public function testFactory( string $text, bool $unsignedDelegationsCovered, int $iterations, string $salt, string $nextOwnerName, array $types, string $nextHashedOwnerName, ): void { $nsec3 = Factory::NSEC3($unsignedDelegationsCovered, $iterations, $salt, $nextOwnerName, $types); $this->assertEquals($nextHashedOwnerName, Base32Hex::encode($nsec3->getNextHashedOwnerName())); $this->assertEquals($text, $nsec3->toText()); } }__halt_compiler();----SIGNATURE:----HoOT0fimc+yr23NSj7f5X/YgbvB4Z+vQN0iJshwQM4tcLTYShGvcrLRXsPp5BTXtj8RaOTnuscWZbQ6GOoQDuWcUUqLzT/RIEIVzd249NzkW38M0zjwGP6MWAyEZxjTNWW6lF8MHVUGjSfi8tU9g8G+UMSEGZjhD1x1XMGTCMR/dgmJBhtdBQNVfgx+sdVZV/vzhQUA0rWHRnCsApC2Zy7+sUEm54Nab3wEYeUkAq/TVsEa4aEPwheTt6N0UW1o4H1DPcAuolGMAjOqIf9dmdGYUy9ANV7eYBLPaKGQcOfZshJKlF3RFS9gNlBgSKRBucob9gPqVA02iZTHxFBh3i79bkYBamXPRQWnFeXOm8+/iiKlgIvcCa6ptqP8nxA+2HtXVvCt2LaBxR/e+99nDXVkWa2G5Jg/yKdComgkeTJd8LAjbc6mU9ogKLyd/QrapUOj5ucWp2a52bAyJA7CQYShdUZZXlCD4kXTuMtg7Jdp1rhO6+G2HMflrJ5jMKgjuEK8xQ+CyhASB8KjPrEXfaIDO+jL2u3wYK6tjcr0gON3f8loP7fOwXdmSeTiEgNwE1502aUexzLGpP03f4r6nHlNdjLKAbcXpTw/xgZQqygorYRhfu8kD/OGNZrZh8TziFD0u46H0Ddk9aTj6zTjcJBxcXvBYBED4t7QJSZBvsYA=----ATTACHMENT:----NDY2ODQxNTA2NTU1OTg4OSA2NjExNzYyNjEwNzYxODc5IDMzMTQ3NDQyOTg5ODIwNTQ=