Code Duplication    Length = 11-15 lines in 2 locations

tests/Nexus/CustomCommand/FacadeTest.php 2 locations

@@ 26-40 (lines=15) @@
23
     * @group Facade
24
     * @group Integration
25
     */
26
    public function testHydrateCommandsRecusive()
27
    {
28
        $commands = $this->facade->hydrateCommands([], __DIR__ . '/test', true);
29
30
        $this->assertCount(2, $commands);
31
32
        $this->assertInstanceOf(
33
            'Nexus\\CustomCommand\\Command\\TestRecursiveCommand',
34
            $commands[0]
35
        );
36
        $this->assertInstanceOf(
37
            'Nexus\\CustomCommand\\Command\\TestCommand',
38
            $commands[1]
39
        );
40
    }
41
42
    /**
43
     * @group Nexus
@@ 48-58 (lines=11) @@
45
     * @group Facade
46
     * @group Integration
47
     */
48
    public function testHydrateCommandsNotRecusive()
49
    {
50
        $commands = $this->facade->hydrateCommands([], __DIR__ . '/test', false);
51
52
        $this->assertCount(1, $commands);
53
54
        $this->assertInstanceOf(
55
            'Nexus\\CustomCommand\\Command\\TestCommand',
56
            $commands[0]
57
        );
58
    }
59
60
    /**
61
     * @group Nexus