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

GitHooksInstallerTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 4
dl 0
loc 23
rs 10
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