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

GitBinaryTest::testConstructor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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