Passed
Push — master ( 7bee4d...457c92 )
by Sebastian
01:54
created

ExpressTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConfigureExpress() 0 9 1
1
<?php
2
/**
3
 * This file is part of CaptainHook.
4
 *
5
 * (c) Sebastian Feldmann <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace CaptainHook\App\Runner\Config\Setup;
11
12
use CaptainHook\App\Runner\BaseTestRunner;
13
14
class ExpressTest extends BaseTestRunner
15
{
16
    /**
17
     * Tests Express::configureHooks
18
     */
19
    public function testConfigureExpress(): void
20
    {
21
        $io     = $this->getIOMock();
22
        $config = $this->getConfigMock();
23
        $config->expects($this->exactly(2))->method('getHookConfig')->willReturn($this->getHookConfigMock());
24
        $io->method('ask')->will($this->onConsecutiveCalls('y', 'y', 'y', 'phpunit', 'y', 'phpcs'));
25
26
        $setup  = new Express($io);
27
        $setup->configureHooks($config);
28
    }
29
}
30