Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function handle(OutcomeInterface $outcome): Status |
||
35 | { |
||
36 | $thrownClass = $outcome->getPayload()['class'] ?? ''; |
||
37 | |||
38 | if ($thrownClass != $this->exceptionClass) { |
||
39 | return new Failure( |
||
40 | "Failed asserting that exception {$this->exceptionClass} was thrown, found: $thrownClass" |
||
41 | ); |
||
42 | } |
||
43 | |||
44 | return new Success("Asserted that exception {$this->exceptionClass} was thrown"); |
||
45 | } |
||
47 |