Completed
Pull Request — master (#37)
by Alessandro
02:23
created

TestResultWithAbnormalTermination::getTestOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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