Passed
Push — master ( fc9abb...9945a9 )
by Luke
02:47
created

RemoteAddCommandTest::testGetCommandLine()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 12
rs 9.4285
cc 1
eloc 10
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\RemoteAddCommand;
14
use ComponentManager\VersionControl\Git\GitRemote;
15
use PHPUnit\Framework\TestCase;
16
17
class RemoteAddCommandTest extends TestCase {
18
    public function testGetCommandLine() {
19
        $command = new RemoteAddCommand(new GitRemote(
20
                'origin',
21
                '[email protected]:LukeCarrier/moodle-componentmgr.git'));
22
        $expect = [
23
            'remote',
24
            'add',
25
            'origin',
26
            '[email protected]:LukeCarrier/moodle-componentmgr.git',
27
        ];
28
        $this->assertEquals($expect, $command->getCommandLine());
29
    }
30
}
31