TestResultWithAbnormalTermination   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 20
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFailureMessage() 0 4 1
A getTestOutput() 0 4 1
A setTestOutput() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Paraunit\TestResult;
6
7
/**
8
 * Class TestResultWithAbnormalTermination
9
 * @package Paraunit\TestResult
10
 */
11
class TestResultWithAbnormalTermination extends TestResultWithMessage
12
{
13
    /** @var string */
14
    private $testOutput;
15
16 9
    public function getFailureMessage(): string
17
    {
18 9
        return parent::getFailureMessage() . "\n" . $this->testOutput;
19
    }
20
21
    public function getTestOutput(): string
22
    {
23
        return $this->testOutput;
24
    }
25
26 15
    public function setTestOutput(string $testOutput)
27
    {
28 15
        $this->testOutput = $testOutput;
29
    }
30
}
31