| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function handle(OutcomeInterface $outcome): StatusInterface |
||
| 33 | { |
||
| 34 | $msg = "that error '{$outcome->getContent()}' matches '{$this->regexp->getRegexp()}'"; |
||
| 35 | |||
| 36 | if (!$this->regexp->matches($outcome->getContent())) { |
||
| 37 | return new Failure($outcome, "Failed asserting $msg"); |
||
| 38 | } |
||
| 39 | |||
| 40 | return new Success($outcome, "Asserted $msg"); |
||
| 41 | } |
||
| 43 |