RevParseCommandTest::testGetCommandLine()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
/**
4
 * Moodle component manager.
5
 *
6
 * @author Luke Carrier <[email protected]>
7
 * @copyright 2016 Luke Carrier
8
 * @license GPL-3.0+
9
 */
10
11
namespace ComponentManager\Test\VersionControl\Git\Command;
12
13
use ComponentManager\VersionControl\Git\Command\RevParseCommand;
14
use PHPUnit\Framework\TestCase;
15
16
class RevParseCommandTest extends TestCase {
17
    public function testGetCommandLine() {
18
        $command = new RevParseCommand('remote/some-reference');
19
        $this->assertEquals(
20
                ['rev-parse', 'remote/some-reference'],
21
                $command->getCommandLine());
22
    }
23
}
24