Passed
Push — develop ( a4c97f...02f249 )
by ANTHONIUS
04:04
created

Processor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
c 0
b 0
f 0
dl 0
loc 12
rs 10
ccs 2
cts 4
cp 0.5

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setCurrentTestCase() 0 3 1
A getCurrentTestCase() 0 3 1
1
<?php
2
3
4
namespace Doyo\PhpSpec\CodeCoverage;
5
6
use Doyo\Behat\Coverage\Bridge\CodeCoverage\Processor as BaseProcessor;
7
use Doyo\Behat\Coverage\Bridge\CodeCoverage\TestCase;
8
9
class Processor extends BaseProcessor implements ProcessorInterface
10
{
11
    private $testCase;
12
13
    public function setCurrentTestCase(TestCase $testCase)
14
    {
15
        $this->testCase = $testCase;
16
    }
17
18 9
    public function getCurrentTestCase(): TestCase
19
    {
20 9
        return $this->testCase;
21
    }
22
}