Code Duplication    Length = 11-12 lines in 2 locations

tests/Rdata/Nsec3paramTest.php 2 locations

@@ 35-45 (lines=11) @@
32
        $this->assertEquals(51, $nsec3param->getTypeCode());
33
    }
34
35
    public function testToText(): void
36
    {
37
        $nsec3param = new NSEC3PARAM();
38
        $nsec3param->setHashAlgorithm(Algorithms::RSAMD5);
39
        $nsec3param->setSalt('d9143ec07c5977ae');
40
        $nsec3param->setIterations(55);
41
        $nsec3param->setFlags(0);
42
43
        $expectation = '1 0 55 d9143ec07c5977ae';
44
        $this->assertEquals($expectation, $nsec3param->toText());
45
    }
46
47
    public function testToWire(): void
48
    {
@@ 60-71 (lines=12) @@
57
        $this->assertEquals($expectation, $nsec3param->toWire());
58
    }
59
60
    public function testFromText(): void
61
    {
62
        $expectation = new NSEC3PARAM();
63
        $expectation->setHashAlgorithm(Algorithms::RSAMD5);
64
        $expectation->setSalt('d9143ec07c5977ae');
65
        $expectation->setIterations(55);
66
        $expectation->setFlags(0);
67
68
        $fromText = new NSEC3PARAM();
69
        $fromText->fromText('1 0 55 d9143ec07c5977ae');
70
        $this->assertEquals($expectation, $fromText);
71
    }
72
73
    public function testFromWire(): void
74
    {