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

BaseDummy5   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSubscribedEvents() 0 4 1
A start() 0 2 1
A stop() 0 3 1
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