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

CheckoutIndexCommandTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetCommandLine() 0 6 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\CheckoutIndexCommand;
14
use PHPUnit\Framework\TestCase;
15
16
class CheckoutIndexCommandTest extends TestCase {
17
    public function testGetCommandLine() {
18
        $command = new CheckoutIndexCommand('/some/dir/');
19
        $this->assertEquals(
20
                ['checkout-index', '--all', '--prefix=/some/dir/'],
21
                $command->getCommandLine());
22
    }
23
}
24