Passed
Push — remove_compat_layer ( 27dc5c...3c8467 )
by Doug
03:22
created

CodeCoverageController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 3 1
A execute() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
/**
5
 * @author ek9 <[email protected]>
6
 *
7
 * @license BSD-2-Clause
8
 *
9
 * For the full copyright and license information, please see the LICENSE file
10
 * that was distributed with this source code.
11
 */
12
13
namespace DVDoug\Behat\CodeCoverage\Controller\Cli;
14
15
use Behat\Testwork\Cli\Controller;
16
use Symfony\Component\Console\Command\Command;
17
use Symfony\Component\Console\Input\InputInterface;
18
use Symfony\Component\Console\Input\InputOption;
19
use Symfony\Component\Console\Output\OutputInterface;
20
21
/**
22
 * Code Coverage Cli Controller.
23
 *
24
 * @author Danny Lewis
25
 */
26
class CodeCoverageController implements Controller
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31 4
    public function configure(Command $command): void
32
    {
33 4
        $command->addOption('no-coverage', null, InputOption::VALUE_NONE, 'Skip Code Coverage generation');
34 4
    }
35
36
    /**
37
     * {@inheritdoc}
38
     * @codeCoverageIgnore
39
     */
40
    public function execute(InputInterface $input, OutputInterface $output): void
41
    {
42
    }
43
}
44