Code Duplication    Length = 10-11 lines in 2 locations

tests/CaptainHook/Runner/ConfiguratorTest.php 2 locations

@@ 17-26 (lines=10) @@
14
    /**
15
     * Tests Installer::installHook
16
     */
17
    public function testConfigureCliHook()
18
    {
19
        $io     = $this->getIOMock();
20
        $config = $this->getConfigMock();
21
        $repo   = $this->getRepositoryMock();
22
        $runner = new Configurator($io, $config, $repo);
23
        $config->method('getHookConfig')->willReturn($this->getHookConfigMock());
24
        $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', 'echo \'foo\'', 'n'));
25
        $runner->configureHook($config, 'pre-push', true);
26
    }
27
28
    /**
29
     * Tests Installer::installHook
@@ 48-58 (lines=11) @@
45
     *
46
     * @expectedException \Exception
47
     */
48
    public function testConfigureFileExists()
49
    {
50
        $io     = $this->getIOMock();
51
        $config = $this->getConfigMock();
52
        $repo   = $this->getRepositoryMock();
53
        $runner = new Configurator($io, $config, $repo);
54
        $config->expects($this->once())->method('isLoadedFromFile')->willReturn(true);
55
        $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', '\\Foo\\Bar', 'y', 'n'));
56
        $runner->run();
57
58
    }
59
60
61
    /**