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 | $output = $outcome->getPayload()['output'] ?? ''; |
||
40 | |||
41 | if (!$this->regexp->isMatch($output)) { |
||
42 | return new Failure( |
||
43 | "Failed asserting that output '$output' matches {$this->regexp}" |
||
44 | ); |
||
45 | } |
||
46 | |||
47 | return new Success("Asserted that output '$output' matches {$this->regexp}"); |
||
48 | } |
||
50 |