| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ExpectationEvaluator |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Evaluate expectations against an outcome |
||
| 16 | * |
||
| 17 | * If outcome is marked as mustBeHandled it must be handled by at least one |
||
| 18 | * expectation. Expectations that does not handle an outcome triggers failure. |
||
| 19 | * |
||
| 20 | * @param ExpectationInterface[] $expectations |
||
| 21 | * @param OutcomeInterface $outcome |
||
| 22 | * @return Status[] |
||
| 23 | */ |
||
| 24 | public function evaluate(array $expectations, OutcomeInterface $outcome): array |
||
| 45 |