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

MuteTestResult::getTestResultFormat()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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