Code Duplication    Length = 11-11 lines in 3 locations

tests/Rdata/HinfoTest.php 3 locations

@@ 22-32 (lines=11) @@
19
20
class HinfoTest extends TestCase
21
{
22
    public function testToText(): void
23
    {
24
        $cpu = '2.7GHz';
25
        $os = 'Ubuntu 12.04';
26
        $expectation = '"2.7GHz" "Ubuntu 12.04"';
27
        $hinfo = new HINFO();
28
        $hinfo->setCpu($cpu);
29
        $hinfo->setOs($os);
30
31
        $this->assertEquals($expectation, $hinfo->toText());
32
    }
33
34
    public function testGetters(): void
35
    {
@@ 34-44 (lines=11) @@
31
        $this->assertEquals($expectation, $hinfo->toText());
32
    }
33
34
    public function testGetters(): void
35
    {
36
        $cpu = '2.7GHz';
37
        $os = 'Ubuntu 12.04';
38
        $hinfo = new HINFO();
39
        $hinfo->setCpu($cpu);
40
        $hinfo->setOs($os);
41
42
        $this->assertEquals($cpu, $hinfo->getCpu());
43
        $this->assertEquals($os, $hinfo->getOs());
44
    }
45
46
    public function testGetType(): void
47
    {
@@ 74-84 (lines=11) @@
71
        $this->assertEquals('Ubuntu 12.04', $hinfo->getOs());
72
    }
73
74
    public function testToWire(): void
75
    {
76
        $cpu = '2.7GHz';
77
        $os = 'Ubuntu 12.04';
78
        $expectation = '"2.7GHz" "Ubuntu 12.04"';
79
        $hinfo = new HINFO();
80
        $hinfo->setCpu($cpu);
81
        $hinfo->setOs($os);
82
83
        $this->assertEquals($expectation, $hinfo->toWire());
84
    }
85
86
    public function testFactory(): void
87
    {