Passed
Push — master ( 9acfaa...693f5f )
by Jakub
01:54
created

DummyEngine   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
eloc 10
c 1
b 0
f 1
dl 0
loc 32
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A collect() 0 16 1
A start() 0 2 1
A isAvailable() 0 3 1
A getName() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace MyTester\CodeCoverage;
5
6
class DummyEngine implements \MyTester\ICodeCoverageEngine
7
{
8
    public function getName(): string
9
    {
10
        return "dummy";
11
    }
12
13
    public function isAvailable(): bool
14
    {
15
        return true;
16
    }
17
18
    public function start(): void
19
    {
20
    }
21
22
    public function collect(): array
23
    {
24
        return [
25
            "file1.php" => [
26
                1 => 1,
27
                -1,
28
                1,
29
            ],
30
            "file2.php" => [
31
                1 => -1,
32
                1,
33
                -1,
34
            ],
35
            "file3.php" => [
36
                1 => 1,
37
                1,
38
            ],
39
        ];
40
    }
41
}
42