Code Duplication    Length = 10-11 lines in 2 locations

tests/Rdata/SshfpTest.php 2 locations

@@ 67-76 (lines=10) @@
64
        $this->assertEquals(44, $sshfp->getTypeCode());
65
    }
66
67
    public function testToText(): void
68
    {
69
        $expectation = '2 1 123456789abcdef67890123456789abcdef67890';
70
        $sshfp = new SSHFP();
71
        $sshfp->setAlgorithm(2);
72
        $sshfp->setFingerprintType(1);
73
        $sshfp->setFingerprint(hex2bin('123456789abcdef67890123456789abcdef67890'));
74
75
        $this->assertEquals($expectation, $sshfp->toText());
76
    }
77
78
    public function testWire(): void
79
    {
@@ 95-105 (lines=11) @@
92
        $this->assertEquals($sshfp, $fromWire);
93
    }
94
95
    public function testFromText(): void
96
    {
97
        $expectation = new SSHFP();
98
        $expectation->setAlgorithm(2);
99
        $expectation->setFingerprintType(1);
100
        $expectation->setFingerprint(hex2bin('123456789abcdef67890123456789abcdef67890'));
101
102
        $fromText = new SSHFP();
103
        $fromText->fromText('2 1 123456789abcdef67890123456789abcdef67890');
104
        $this->assertEquals($expectation, $fromText);
105
    }
106
107
    public function testFactory(): void
108
    {