| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function handle(OutcomeInterface $outcome): Status |
||
| 38 | { |
||
| 39 | $returnValue = $outcome->getPayload()['value'] ?? ''; |
||
| 40 | |||
| 41 | if (!$this->regexp->isMatch($returnValue)) { |
||
| 42 | return new Failure( |
||
| 43 | "Failed asserting that return value '$returnValue' matches {$this->regexp}" |
||
| 44 | ); |
||
| 45 | } |
||
| 46 | |||
| 47 | return new Success("Asserted that return value '$returnValue' matches {$this->regexp}"); |
||
| 48 | } |
||
| 50 |