Completed
Push — dev ( 786af9...b8d9d3 )
by Antonio
08:51
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(
29
            $this->io,
30
            $this->composer
31
        );
32
33
        $this->assertTrue($installer->supports('git-hook'));
34
    }
35
}
36