Code Duplication    Length = 8-8 lines in 2 locations

tests/src/ExecutionWrapperTest.php 2 locations

@@ 31-38 (lines=8) @@
28
        $this->assertEquals('123', $result->getOutput());
29
    }
30
31
    public function testExecuteEscapesDataByDefault()
32
    {
33
        $this->sut = new ExecutionWrapper();
34
        $result = $this->sut->exec('echo ? %s', array("'"));
35
36
        $this->assertEquals(0, $result->getReturnCode());
37
        $this->assertEquals("? \'", $result->getOutput());
38
    }
39
40
    public function testExecuteDoesntEscapesCmdWithConfig()
41
    {
@@ 40-47 (lines=8) @@
37
        $this->assertEquals("? \'", $result->getOutput());
38
    }
39
40
    public function testExecuteDoesntEscapesCmdWithConfig()
41
    {
42
        $this->sut = new ExecutionWrapper(['escape_shell_cmd' => false]);
43
        $result = $this->sut->exec('echo ? %s', array("'"));
44
45
        $this->assertEquals(0, $result->getReturnCode());
46
        $this->assertEquals("? '", $result->getOutput());
47
    }
48
49
    public function testExecuteNotifyBeforeAndAfterExecute()
50
    {