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