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

FakeDriver   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 33.33%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
ccs 2
cts 6
cp 0.3333
rs 10

3 Methods

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