Code Duplication    Length = 8-9 lines in 3 locations

tests/CaptainHook/Runner/HookTest.php 2 locations

@@ 19-26 (lines=8) @@
16
     *
17
     * @expectedException \Exception
18
     */
19
    public function testSetHook()
20
    {
21
        $io     = $this->getIOMock();
22
        $config = $this->getConfigMock();
23
        $repo   = $this->getRepositoryMock();
24
        $runner = new Hook($io, $config, $repo);
25
        $runner->setHook('iDonExist');
26
    }
27
28
    /**
29
     * Tests Installer::run
@@ 91-99 (lines=9) @@
88
     *
89
     * @expectedException \Exception
90
     */
91
    public function testGetRunnerFailure()
92
    {
93
        $io           = $this->getIOMock();
94
        $config       = $this->getConfigMock();
95
        $repo         = $this->getRepositoryMock();
96
97
        $hook   = new Hook($io, $config, $repo);
98
        $hook->getActionRunner('foo');
99
    }
100
}
101

tests/CaptainHook/Runner/InstallerTest.php 1 location

@@ 19-26 (lines=8) @@
16
     *
17
     * @expectedException \Exception
18
     */
19
    public function testSetHookInvalid()
20
    {
21
        $io     = $this->getIOMock();
22
        $config = $this->getConfigMock();
23
        $repo   = $this->getRepositoryMock();
24
        $runner = new Installer($io, $config, $repo);
25
        $runner->setHook('iDoNotExist');
26
    }
27
28
    /**
29
     * Tests Installer::installHook