Code Duplication    Length = 10-10 lines in 2 locations

tests/Rdata/DhcidTest.php 2 locations

@@ 44-53 (lines=10) @@
41
        $this->assertEquals(49, $dhcid->getTypeCode());
42
    }
43
44
    public function testSetGetHtype(): void
45
    {
46
        $dhcid = new DHCID();
47
        $dhcid->setHtype(3);
48
        $this->assertEquals(3, $dhcid->getHtype());
49
50
        $this->expectException(\InvalidArgumentException::class);
51
        $this->expectExceptionMessage('HType must be an 8-bit integer.');
52
        $dhcid->setHtype(256);
53
    }
54
55
    public function testSetGetFqdn(): void
56
    {
@@ 55-64 (lines=10) @@
52
        $dhcid->setHtype(256);
53
    }
54
55
    public function testSetGetFqdn(): void
56
    {
57
        $dhcid = new DHCID();
58
        $dhcid->setFqdn('abc.example.com.');
59
        $this->assertEquals('abc.example.com.', $dhcid->getFqdn());
60
61
        $this->expectException(\InvalidArgumentException::class);
62
        $this->expectExceptionMessage('"abc.example.com" is not a fully qualified domain name.');
63
        $dhcid->setFqdn('abc.example.com');
64
    }
65
66
    public function testSetIdentifierTypeThrowsExceptionIfTypeIsMoreThanSixteenBits(): void
67
    {