Completed
Pull Request — master (#93)
by Alessandro
02:47
created

FakeDriver::start()   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 2
Bugs 1 Features 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 2
b 1
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
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