1 | <?php |
||
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 |