Completed
Push — develop ( 978c73...c86111 )
by ANTHONIUS
13s queued 11s
created

BaseDummy5::getSubscribedEvents()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the doyo/behat-coverage-extension project.
5
 *
6
 * (c) Anthonius Munthi <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Doyo\Behat\Coverage\Bridge\CodeCoverage\Driver\Compat;
15
16
use Doyo\Behat\Coverage\Event\CoverageEvent;
17
use SebastianBergmann\CodeCoverage\Driver\Driver;
18
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
19
20
/**
21
 * A dumb driver to prevent error.
22
 */
23
class BaseDummy5 implements Driver, EventSubscriberInterface
24
{
25
    public static function getSubscribedEvents()
26
    {
27
        return [
28
            CoverageEvent::STOP => ['stop', -1],
29
        ];
30
    }
31
32
    public function start($determineUnusedAndDead = true)
33
    {
34
    }
35
36
    public function stop()
37
    {
38
        return [];
39
    }
40
}
41