Completed
Pull Request — master (#94)
by Alessandro
04:33
created

FakeDriver   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 10
c 1
b 1
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A start() 0 4 1
A stop() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Paraunit\Proxy\Coverage;
5
6
use SebastianBergmann\CodeCoverage\Driver\Driver;
7
8
/**
9
 * Class FakeDriver
10
 * @package Paraunit\Proxy\Coverage
11
 */
12
class FakeDriver implements Driver
13
{
14
    public function start($determineUnusedAndDead = true)
15
    {
16
        throw new \RuntimeException('This is a fake implementation, it shouldn\'t be used!');
17
    }
18
19
    public function stop()
20
    {
21
        throw new \RuntimeException('This is a fake implementation, it shouldn\'t be used!');
22
    }
23
}
24