Code Duplication    Length = 10-11 lines in 2 locations

tests/Rdata/SrvTest.php 1 location

@@ 22-32 (lines=11) @@
19
20
class SrvTest extends TestCase
21
{
22
    public function testOutput(): void
23
    {
24
        $srv = Factory::SRV(10, 20, 666, 'doom.example.com.');
25
26
        $expectation = '10 20 666 doom.example.com.';
27
28
        $this->assertEquals($expectation, $srv->toText());
29
        $this->assertEquals(10, $srv->getPriority());
30
        $this->assertEquals(20, $srv->getWeight());
31
        $this->assertEquals(666, $srv->getPort());
32
    }
33
34
    /**
35
     * @throws \InvalidArgumentException

tests/Rdata/UriTest.php 1 location

@@ 34-43 (lines=10) @@
31
        ];
32
    }
33
34
    public function testOutput(): void
35
    {
36
        $srv = Factory::URI(10, 1, 'http://www.example.com/path');
37
        $expectation = '10 1 "http://www.example.com/path"';
38
39
        $this->assertEquals($expectation, $srv->toText());
40
        $this->assertEquals(10, $srv->getPriority());
41
        $this->assertEquals(1, $srv->getWeight());
42
        $this->assertEquals('http://www.example.com/path', $srv->getTarget());
43
    }
44
45
    /**
46
     * @dataProvider dataProvider_testExceptions