Completed
Pull Request — develop (#147)
by
unknown
02:05
created

GitBinaryTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testConstructor() 0 5 1
A testGetVersion() 0 5 1
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;
15
16
/**
17
 * GitBinary Test
18
 *
19
 * @author Matteo Giachino <[email protected]>
20
 */
21
class GitBinaryTest extends TestCase
22
{
23
    protected $path = '/path/to/binary';
24
25
    public function testConstructor()
26
    {
27
        $binary = new GitBinary($this->path);
28
        $this->assertEquals($this->path, $binary->getPath());
29
    }
30
31
    public function testGetVersion()
32
    {
33
        $binary = new GitBinary($this->path);
34
        $this->assertInternalType('string', $binary->getVersion());
35
    }
36
}
37