Code Duplication    Length = 14-14 lines in 2 locations

tests/unit/Task/HgTest.php 2 locations

@@ 56-69 (lines=14) @@
53
        )->equals('hg add -I *.php -X *.css');
54
    }
55
56
    public function testHgStackCommands()
57
    {
58
        verify(
59
            $this->hgStack
60
                ->cloneRepo('https://bitbucket.org/durin42/hgsubversion')
61
                ->pull()
62
                ->add()
63
                ->commit('changed')
64
                ->push()
65
                ->tag('0.6.0')
66
                ->push('0.6.0')
67
                ->getCommand()
68
        )->equals("hg clone https://bitbucket.org/durin42/hgsubversion && hg pull && hg add && hg commit -m 'changed' && hg push && hg tag 0.6.0 && hg push -b '0.6.0'");
69
    }
70
71
    public function testHgStackCommandsWithTagMessage()
72
    {
@@ 71-84 (lines=14) @@
68
        )->equals("hg clone https://bitbucket.org/durin42/hgsubversion && hg pull && hg add && hg commit -m 'changed' && hg push && hg tag 0.6.0 && hg push -b '0.6.0'");
69
    }
70
71
    public function testHgStackCommandsWithTagMessage()
72
    {
73
        verify(
74
            $this->hgStack
75
                ->cloneRepo('https://bitbucket.org/durin42/hgsubversion')
76
                ->pull()
77
                ->add()
78
                ->commit('changed')
79
                ->push()
80
                ->tag('0.6.0', 'message')
81
                ->push('0.6.0')
82
                ->getCommand()
83
        )->equals("hg clone https://bitbucket.org/durin42/hgsubversion && hg pull && hg add && hg commit -m 'changed' && hg push && hg tag -m 'message' 0.6.0 && hg push -b '0.6.0'");
84
    }
85
}
86