Code Duplication    Length = 16-16 lines in 2 locations

src/TestBundle/Tests/Command/TestsRunCommandTest.php 2 locations

@@ 43-58 (lines=16) @@
40
        $this->resultRepo = $this->em->getRepository('OverwatchResultBundle:TestResult');
41
    }
42
    
43
    public function testWhenAllPass()
44
    {
45
        $this->createSocketReadMock();
46
        
47
        $returnCode = $this->execute();
48
        
49
        $this->assertEquals(0, $returnCode);
50
        $this->assertCountLinesOfOutput(2);
51
        
52
        $this->assertHasStandardOutput();
53
        
54
        $this->assertCountRunTests();
55
        $this->assertResults(0, 0, 0, count(TestFixtures::$tests));
56
        
57
        $this->assertRecentResultsPersisted();
58
    }
59
    
60
    public function testVerboselyWhenAllPass()
61
    {
@@ 87-102 (lines=16) @@
84
        $this->assertRecentResultsPersisted();
85
    }
86
    
87
    public function testDiscardsResults()
88
    {
89
        $this->createSocketReadMock();
90
        
91
        $returnCode = $this->execute(['--discard-results']);
92
        
93
        $this->assertEquals(0, $returnCode);
94
        $this->assertCountLinesOfOutput(2);
95
        
96
        $this->assertHasStandardOutput();
97
        
98
        $this->assertCountRunTests();
99
        $this->assertResults(0, 0, 0, count(TestFixtures::$tests));
100
        
101
        $this->assertRecentResultsNotPersisted();
102
    }
103
    
104
    public function testNamedTests()
105
    {