Code Duplication    Length = 11-11 lines in 3 locations

tests/unit/LinesTest.php 3 locations

@@ 30-40 (lines=11) @@
27
        $this->lines = new Lines($this->output, $this->pool);
28
    }
29
30
    public function testShowDuration()
31
    {
32
        $output = Mockery::mock(OutputInterface::class);
33
        $lines = new Lines($output);
34
35
        $this->assertTrue($lines->isShowDuration());
36
37
        $this->assertSame($lines, $lines->setShowDuration(false));
38
39
        $this->assertFalse($lines->isShowDuration());
40
    }
41
42
    public function testShowType()
43
    {
@@ 42-52 (lines=11) @@
39
        $this->assertFalse($lines->isShowDuration());
40
    }
41
42
    public function testShowType()
43
    {
44
        $output = Mockery::mock(OutputInterface::class);
45
        $lines = new Lines($output);
46
47
        $this->assertTrue($lines->isShowType());
48
49
        $this->assertSame($lines, $lines->setShowType(false));
50
51
        $this->assertFalse($lines->isShowType());
52
    }
53
    public function testShowProcessColours()
54
    {
55
        $output = Mockery::mock(OutputInterface::class);
@@ 53-63 (lines=11) @@
50
51
        $this->assertFalse($lines->isShowType());
52
    }
53
    public function testShowProcessColours()
54
    {
55
        $output = Mockery::mock(OutputInterface::class);
56
        $lines = new Lines($output);
57
58
        $this->assertTrue($lines->isColourProcesses());
59
60
        $this->assertSame($lines, $lines->setColourProcesses(false));
61
62
        $this->assertFalse($lines->isColourProcesses());
63
    }
64
65
    public function testSingleProcessOutput()
66
    {