Completed
Pull Request — master (#71)
by Alessandro
07:13 queued 01:42
created

FakeDriver::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
4
namespace Paraunit\Proxy\Coverage;
5
6
use SebastianBergmann\CodeCoverage\Driver\PHPDBG;
7
8
/**
9
 * Class FakeDriver
10
 * @package Paraunit\Proxy\Coverage
11
 */
12
class FakeDriver extends PHPDBG
13
{
14 4
    public function __construct()
15
    {
16
        // nope
17 4
    }
18
19
    public function start($determineUnusedAndDead = true)
20
    {
21
        throw new \RuntimeException('This is a fake implementation, it shouldn\'t be used!');
22
    }
23
24
    public function stop()
25
    {
26
        throw new \RuntimeException('This is a fake implementation, it shouldn\'t be used!');
27
    }
28
}
29