Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class MockThrowableRenderer extends ThrowableRenderer |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $response; |
||
14 | |||
15 | public function __construct(string $response) |
||
16 | { |
||
17 | $this->response = $response; |
||
18 | } |
||
19 | |||
20 | public function render(\Throwable $t): string |
||
21 | { |
||
22 | return $this->response; |
||
23 | } |
||
24 | |||
25 | public function renderVerbose(\Throwable $t): string |
||
26 | { |
||
27 | return $this->response; |
||
28 | } |
||
30 |