Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | final readonly class SkippedTest |
||
|
|||
13 | { |
||
14 | use \Nette\SmartObject; |
||
15 | |||
16 | public string $name; |
||
17 | public string $reason; |
||
18 | |||
19 | 1 | public function __construct(string $name, string $reason) |
|
20 | { |
||
21 | 1 | $this->name = $name; |
|
22 | 1 | $this->reason = $reason; |
|
23 | } |
||
24 | |||
25 | 1 | public function __toString(): string |
|
26 | { |
||
27 | 1 | $reason = ""; |
|
28 | 1 | if ($this->reason) { |
|
29 | 1 | $reason = ": $this->reason"; |
|
30 | } |
||
31 | 1 | return "Skipped $this->name$reason\n"; |
|
32 | } |
||
34 |