Passed
Pull Request — master (#9)
by ANTHONIUS
02:18
created

TestApplication   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setOutput() 0 3 1
A run() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the dotfiles project.
7
 *
8
 *     (c) Anthonius Munthi <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Dotfiles\Core\Helper\Tests;
15
16
use Dotfiles\Core\Console\Application as BaseApplication;
17
use Symfony\Component\Console\Input\InputInterface;
18
use Symfony\Component\Console\Output\OutputInterface;
19
20
class TestApplication extends BaseApplication
21
{
22
    /**
23
     * @var OutputInterface
24
     */
25
    private $output;
26
27
    /**
28
     * @var resource
29
     */
30
    private $stream;
0 ignored issues
show
introduced by
The private property $stream is not used, and could be removed.
Loading history...
31
32
    public function run(InputInterface $input = null, OutputInterface $output = null)
33
    {
34
        $this->setAutoExit(false);
35
36
        return parent::run($input, $output);
37
    }
38
39
    /**
40
     * @param OutputInterface $output
41
     */
42
    public function setOutput(OutputInterface $output): void
43
    {
44
        $this->output = $output;
45
    }
46
}
47