Code Duplication    Length = 9-9 lines in 2 locations

tests/Rdata/KxTest.php 2 locations

@@ 44-52 (lines=9) @@
41
        $this->assertEquals('42 foo.example.com.', $kx->toText());
42
    }
43
44
    public function testOutputThrowsExceptionWhenMissingPreference(): void
45
    {
46
        $kx = new KX();
47
        $kx->setExchanger('mail.google.com.');
48
49
        $this->expectException(\InvalidArgumentException::class);
50
        $this->expectExceptionMessage('No preference has been set on KX object.');
51
        $kx->toText();
52
    }
53
54
    public function testOutputThrowsExceptionWhenMissingExchanger(): void
55
    {
@@ 54-62 (lines=9) @@
51
        $kx->toText();
52
    }
53
54
    public function testOutputThrowsExceptionWhenMissingExchanger(): void
55
    {
56
        $kx = new KX();
57
        $kx->setPreference(15);
58
59
        $this->expectException(\InvalidArgumentException::class);
60
        $this->expectExceptionMessage('No exchanger has been set on KX object.');
61
        $kx->toText();
62
    }
63
64
    public function testFactory(): void
65
    {