Completed
Pull Request — master (#94)
by Alessandro
04:33
created

TestResultWithAbnormalTermination::setTestOutput()   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 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Paraunit\TestResult;
5
6
/**
7
 * Class TestResultWithAbnormalTermination
8
 * @package Paraunit\TestResult
9
 */
10
class TestResultWithAbnormalTermination extends TestResultWithMessage
11
{
12
    /** @var string */
13
    private $testOutput;
14
15 8
    public function getFailureMessage(): string
16
    {
17 8
        return parent::getFailureMessage() . "\n" . $this->testOutput;
18
    }
19
20
    public function getTestOutput(): string
21
    {
22
        return $this->testOutput;
23
    }
24
25 13
    public function setTestOutput(string $testOutput)
26
    {
27 13
        $this->testOutput = $testOutput;
28
    }
29
}
30