Completed
Push — master ( 0e338e...cdc67b )
by Alessandro
09:41 queued 04:45
created

MuteTestResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 3
c 4
b 0
f 0
lcom 0
cbo 2
dl 0
loc 29
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setTestResultFormat() 0 4 1
A getTestResultFormat() 0 4 1
1
<?php
2
3
namespace Paraunit\TestResult;
4
5
use Paraunit\TestResult\Interfaces\PrintableTestResultInterface;
6
7
/**
8
 * Class MuteTestResult
9
 * @package Paraunit\Output\MuteTestResult
10
 */
11
class MuteTestResult extends NullTestResult implements PrintableTestResultInterface
12
{
13
    /** @var  TestResultFormat */
14
    private $testResultFormat;
15
16
    /**
17
     * AbstractTestResult constructor.
18
     */
19 11
    public function __construct()
20
    {
21 11
        $this->testResultFormat = new TestResultFormat('', 'null', '');
22 11
    }
23
24
    /**
25
     * @param TestResultFormat $testResultFormat
26
     */
27 31
    public function setTestResultFormat(TestResultFormat $testResultFormat)
28
    {
29 31
        $this->testResultFormat = $testResultFormat;
30 31
    }
31
32
    /**
33
     * @return TestResultFormat
34
     */
35 24
    public function getTestResultFormat()
36
    {
37 24
        return $this->testResultFormat;
38
    }
39
}
40