Code Duplication    Length = 13-13 lines in 2 locations

tests/Rdata/SrvTest.php 1 location

@@ 70-82 (lines=13) @@
67
        $srv->setWeight(65536);
68
    }
69
70
    public function testFromText(): void
71
    {
72
        $text = '0 1 80 www.example.com.';
73
        $srv = new SRV();
74
        $srv->setPriority(0);
75
        $srv->setWeight(1);
76
        $srv->setPort(80);
77
        $srv->setTarget('www.example.com.');
78
79
        $fromText = new SRV();
80
        $fromText->fromText($text);
81
        $this->assertEquals($srv, $fromText);
82
    }
83
84
    public function testWire(): void
85
    {

tests/Rdata/UriTest.php 1 location

@@ 56-68 (lines=13) @@
53
        Factory::URI($priority, $weight, $target);
54
    }
55
56
    public function testFromText(): void
57
    {
58
        $text = '10 1 "ftp://ftp1.example.com/public%20data"';
59
60
        $uri = new URI();
61
        $uri->setPriority(10);
62
        $uri->setWeight(1);
63
        $uri->setTarget('ftp://ftp1.example.com/public%20data');
64
65
        $fromText = new URI();
66
        $fromText->fromText($text);
67
        $this->assertEquals($uri, $fromText);
68
    }
69
70
    public function testWire(): void
71
    {