Code Duplication    Length = 11-11 lines in 2 locations

tests/unit/Task/ExecTaskTest.php 1 location

@@ 11-21 (lines=11) @@
8
     */
9
    protected $process;
10
11
    protected function _before()
12
    {
13
        $this->process = test::double('Symfony\Component\Process\Process', [
14
            'run' => false,
15
            'start' => false,
16
            'getOutput' => 'Hello world',
17
            'getExitCode' => 0,
18
            'logger' => new \Psr\Log\NullLogger(),
19
        ]);
20
        test::double('Robo\Task\Base\Exec', ['output' => new \Symfony\Component\Console\Output\NullOutput()]);
21
    }
22
23
    public function testExec()
24
    {

tests/unit/Task/PHPServerTest.php 1 location

@@ 12-22 (lines=11) @@
9
     */
10
    protected $process;
11
12
    protected function _before()
13
    {
14
        $this->process = test::double('Symfony\Component\Process\Process', [
15
            'run' => false,
16
            'start' => false,
17
            'getOutput' => 'Hello world',
18
            'getExitCode' => 0,
19
            'logger' => new \Psr\Log\NullLogger(),
20
        ]);
21
        test::double('Robo\Task\Development\PhpServer', ['output' => new \Symfony\Component\Console\Output\NullOutput()]);
22
    }
23
24
    public function testServerBackgroundRun()
25
    {