MuteTestResult::getTestResultFormat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Paraunit\TestResult;
6
7
use Paraunit\TestResult\Interfaces\PrintableTestResultInterface;
8
9
/**
10
 * Class MuteTestResult
11
 * @package Paraunit\Output\MuteTestResult
12
 */
13
class MuteTestResult extends NullTestResult implements PrintableTestResultInterface
14
{
15
    /** @var TestResultFormat */
16
    private $testResultFormat;
17
18
    /**
19
     * AbstractTestResult constructor.
20
     */
21 55
    public function __construct()
22
    {
23 55
        $this->testResultFormat = new TestResultFormat('null', '');
24
    }
25
26 39
    public function setTestResultFormat(TestResultFormat $testResultFormat)
27
    {
28 39
        $this->testResultFormat = $testResultFormat;
29
    }
30
31 40
    public function getTestResultFormat(): TestResultFormat
32
    {
33 40
        return $this->testResultFormat;
34
    }
35
}
36