Test Failed
Branch dev (e6cd23)
by Antonio
04:04
created

GitHooksInstallerTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Ams\Composer\GitHooks\Test\Installer;
4
5
use Ams\Composer\GitHooks\Installer\GitHooksInstaller;
6
use Composer\Composer;
7
use Composer\Config;
8
use Composer\TestCase;
9
10
class GitHooksInstallerTest extends TestCase
11
{
12
    /**
13
     * @var Composer
14
     */
15
    private $composer;
16
17
    private $io;
18
19
    public function setUp()
20
    {
21
        $this->composer = new Composer();
22
        $this->composer->setConfig(new Config());
23
        $this->io = $this->getMock('Composer\IO\IOInterface');
24
    }
25
26
    public function testSupportSuccess()
27
    {
28
        $installer = new GitHooksInstaller($this->io, $this->composer);
29
30
        $this->assertTrue($installer->supports('git-hook'));
31
    }
32
}
33