Code Duplication    Length = 14-15 lines in 2 locations

src/ResultBundle/Tests/Command/ResultCleanupCommandTest.php 1 location

@@ 29-42 (lines=14) @@
26
27
    private $resultRepo;
28
29
    public function setUp()
30
    {
31
        parent::setUp();
32
33
        //Set up the console application, command and command test runner
34
        $command = new ResultCleanupCommand();
35
        $command->setContainer($this->getContainer());
36
37
        $this->application = new Application('Overwatch', '0.0.1-test.' . time());
38
        $this->application->add($command);
39
40
        $this->command = new CommandTester($command);
41
        $this->resultRepo = $this->em->getRepository('OverwatchResultBundle:TestResult');
42
    }
43
44
    /**
45
     * @expectedException \InvalidArgumentException

src/TestBundle/Tests/Command/TestsRunCommandTest.php 1 location

@@ 27-41 (lines=15) @@
24
    private $command;
25
    private $resultRepo;
26
    
27
    public function setUp()
28
    {
29
        parent::setUp();
30
        $this->createSocketMocks();
31
        
32
        //Set up the console application, command and command test runner
33
        $command = new TestsRunCommand();
34
        $command->setContainer($this->getContainer());
35
        
36
        $this->application = new Application('Overwatch', '0.0.1-test.' . time());
37
        $this->application->add($command);
38
39
        $this->command = new CommandTester($command);
40
        $this->resultRepo = $this->em->getRepository('OverwatchResultBundle:TestResult');
41
    }
42
    
43
    public function testWhenAllPass()
44
    {