Passed
Push — master ( 813fe9...62056b )
by Sebastian
06:01
created

MainTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRun() 0 12 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\Console\Application;
11
12
use Symfony\Component\Console\Input\ArrayInput;
13
use Symfony\Component\Console\Output\NullOutput;
14
15
class MainTest extends \PHPUnit_Framework_TestCase
16
{
17
    public function testRun()
18
    {
19
        $output = new NullOutput();
20
        $input  = new ArrayInput([
21
            'command'         => 'run',
22
            'hook'            => 'pre-push',
23
            '--configuration' => HMU_PATH_FILES . DIRECTORY_SEPARATOR . 'config/valid.json'
24
        ]);
25
        $app = new Main();
26
        $app->setAutoExit(false);
27
        $app->run($input, $output);
28
    }
29
}
30