Code Duplication    Length = 8-9 lines in 2 locations

tests/Functional/Command/PackagistSecurityCheckerCommandTest.php 2 locations

@@ 62-70 (lines=9) @@
59
        $this->assertRegexp('/"package": "doctrine/', $this->commandTester->getDisplay());
60
    }
61
62
    public function testExcecuteCommandWithoutBugs()
63
    {
64
        $this->commandTester->execute([
65
                'command' => $this->command->getName(),
66
                'composer-lock-file' => $this->getComposerLockPathWithoutBugs(),
67
        ]);
68
69
        $this->assertEquals(0, $this->commandTester->getStatusCode());
70
    }
71
72
    public function testExcecuteCommandWithBugs()
73
    {
@@ 72-79 (lines=8) @@
69
        $this->assertEquals(0, $this->commandTester->getStatusCode());
70
    }
71
72
    public function testExcecuteCommandWithBugs()
73
    {
74
        $this->commandTester->execute([
75
            'command' => $this->command->getName(),
76
            'composer-lock-file' => $this->getComposerLockPathWithBugs(),
77
        ]);
78
        $this->assertEquals(1, $this->commandTester->getStatusCode());
79
    }
80
81
    /**
82
     * @return string