Code Duplication    Length = 20-20 lines in 2 locations

test/RoaveTest/ComposerGpgVerify/Package/GitPackageTest.php 2 locations

@@ 41-60 (lines=20) @@
38
        $this->package = $package;
39
    }
40
41
    public function testWillReportSuccessfulVerification() : void
42
    {
43
        $verification = GitPackage::fromPackageAndSignatureChecks(
44
            $this->package,
45
            $this->makeSignatureCheck(true, 'yadda')
46
        );
47
48
        self::assertInstanceOf(GitPackage::class, $verification);
49
        self::assertSame($this->packageName, $verification->packageName());
50
        self::assertTrue($verification->isVerified());
51
        self::assertSame(
52
            <<<REASON
53
The following GIT GPG signature checks passed for package "{$this->packageName}":
54
55
yadda
56
REASON
57
            ,
58
            $verification->printReason()
59
        );
60
    }
61
62
    public function testWillReportSuccessfulVerificationWithMultipleChecks() : void
63
    {
@@ 90-109 (lines=20) @@
87
        );
88
    }
89
90
    public function testWillReportFailedVerification() : void
91
    {
92
        $verification = GitPackage::fromPackageAndSignatureChecks(
93
            $this->package,
94
            $this->makeSignatureCheck(false, 'yadda')
95
        );
96
97
        self::assertInstanceOf(GitPackage::class, $verification);
98
        self::assertSame($this->packageName, $verification->packageName());
99
        self::assertFalse($verification->isVerified());
100
        self::assertSame(
101
            <<<REASON
102
The following GIT GPG signature checks have failed for package "{$this->packageName}":
103
104
yadda
105
REASON
106
            ,
107
            $verification->printReason()
108
        );
109
    }
110
111
    public function testWillReportFailedVerificationWithMultipleChecks() : void
112
    {