Completed
Push — develop ( b29d0d...9c2be0 )
by
unknown
16s queued 11s
created

LsTreeCommandTest::testFullTree()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the GitElephant package.
5
 *
6
 * (c) Matteo Giachino <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * Just for fun...
12
 */
13
14
namespace GitElephant\Command;
15
16
use \GitElephant\Command\LsTreeCommand;
17
use \GitElephant\TestCase;
18
19
/**
20
 * LsTreeCommandTest
21
 *
22
 * LsTreeCommand class tests
23
 *
24
 * @author Matteo Giachino <[email protected]>
25
 */
26
class LsTreeCommandTest extends TestCase
27
{
28
    /**
29
     * @var \GitElephant\Command\LsTreeCommand ;
30
     */
31
    private $lsTreeCommand;
32
33
    /**
34
     * setUp function
35
     */
36
    public function setUp(): void
37
    {
38
        $this->lsTreeCommand = new LsTreeCommand();
39
    }
40
41
    /**
42
     * fullTree test
43
     *
44
     * @covers \GitElephant\Command\LsTreeCommand::tree
45
     */
46
    public function testFullTree(): void
47
    {
48
        $this->assertEquals("ls-tree '-r' '-t' '-l' 'HEAD'", $this->lsTreeCommand->fullTree(), 'ls-tree command test');
49
    }
50
51
    /**
52
     * tree test
53
     *
54
     * @covers \GitElephant\Command\LsTreeCommand::tree
55
     */
56
    public function testTree(): void
57
    {
58
        $this->assertEquals("ls-tree '-l' 'HEAD'", $this->lsTreeCommand->tree(), 'ls-tree command test');
59
    }
60
61
    /**
62
     * listAll test
63
     *
64
     * @covers \GitElephant\Command\LsTreeCommand::listAll
65
     */
66
    public function testListAll(): void
67
    {
68
        $this->assertEquals("ls-tree 'HEAD'", $this->lsTreeCommand->listAll(), 'ls-tree command test');
69
    }
70
}
71