Total Complexity | 5 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class ErrorExpectation implements ExpectationInterface |
||
14 | { |
||
15 | private Regexp $regexp; |
||
16 | |||
17 | public function __construct(Regexp $regexp) |
||
18 | { |
||
19 | $this->regexp = $regexp; |
||
20 | } |
||
21 | |||
22 | public function getDescription(): string |
||
23 | { |
||
24 | return "expecting error to match regexp {$this->regexp->getRegexp()}"; |
||
25 | } |
||
26 | |||
27 | public function handles(OutcomeInterface $outcome): bool |
||
30 | } |
||
31 | |||
32 | public function handle(OutcomeInterface $outcome): StatusInterface |
||
41 | } |
||
42 | } |
||
43 |