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

DummyEngine::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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