Completed
Push — master ( 9272ce...7209dc )
by Alessandro
11:18 queued 04:28
created

FakeDriver::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 1
nc 1
nop 0
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
    public function __construct()
15
    {
16
        // nope
17
    }
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