Passed
Push — unit ( fc9abb...3cd14f )
by Luke
02:42
created

RemoteAddCommandTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 3
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetCommandLine() 0 8 1
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
        $this->assertEquals(
23
                ['remote', 'add', 'origin', '[email protected]:LukeCarrier/moodle-componentmgr.git'],
0 ignored issues
show
Coding Style introduced by
This line exceeds maximum limit of 80 characters; contains 98 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
24
                $command->getCommandLine());
25
    }
26
}
27