Code Duplication    Length = 13-13 lines in 2 locations

Tests/Manager/RunManagerTest.php 2 locations

@@ 26-38 (lines=13) @@
23
        self::assertEquals(\Dtc\QueueBundle\Entity\Run::class, $runManager->getRunClass());
24
    }
25
26
    public function testPruneArchiveRuns()
27
    {
28
        $runManager = new RunManager(Run::class);
29
30
        $failure = false;
31
        try {
32
            $runManager->pruneArchivedRuns(new \DateTime());
33
            $failure = true;
34
        } catch (UnsupportedException $exception) {
35
            self::assertNotNull($exception);
36
        }
37
        self::assertFalse($failure);
38
    }
39
40
    public function testPruneStalledRuns()
41
    {
@@ 40-52 (lines=13) @@
37
        self::assertFalse($failure);
38
    }
39
40
    public function testPruneStalledRuns()
41
    {
42
        $runManager = new RunManager(Run::class);
43
44
        $failure = false;
45
        try {
46
            $runManager->pruneStalledRuns();
47
            $failure = true;
48
        } catch (UnsupportedException $exception) {
49
            self::assertNotNull($exception);
50
        }
51
        self::assertFalse($failure);
52
    }
53
}
54