FullTestResult   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 22
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getTrace() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Paraunit\TestResult;
6
7
use Paraunit\TestResult\Interfaces\FailureMessageInterface;
8
use Paraunit\TestResult\Interfaces\FunctionNameInterface;
9
use Paraunit\TestResult\Interfaces\PrintableTestResultInterface;
10
use Paraunit\TestResult\Interfaces\StackTraceInterface;
11
12
/**
13
 * Class FullTestResult
14
 * @package Paraunit\TestResult
15
 */
16
class FullTestResult extends TestResultWithMessage implements PrintableTestResultInterface, FunctionNameInterface, FailureMessageInterface, StackTraceInterface
17
{
18
    /** @var string */
19
    private $trace;
20
21
    /**
22
     * FullTestResult constructor.
23
     * @param string $functionName
24
     * @param string $failureMessage
25
     * @param string $trace
26
     */
27 37
    public function __construct(string $functionName, string $failureMessage, string $trace)
28
    {
29 37
        parent::__construct($functionName, $failureMessage);
30 37
        $this->trace = $trace;
31
    }
32
33 10
    public function getTrace(): string
34
    {
35 10
        return $this->trace;
36
    }
37
}
38