Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class Evaluator |
||
16 | { |
||
17 | /** |
||
18 | * Evaluate expectations against a set of outcomes |
||
19 | * |
||
20 | * All outcomes must be handled by at least one expectation. Expectations |
||
21 | * that does not handle an outcome defaults to failure. |
||
22 | * |
||
23 | * @param ExpectationInterface[] $expectations |
||
24 | * @param OutcomeInterface[] $outcomes |
||
25 | * @return Status[] |
||
26 | */ |
||
27 | public function evaluate(array $expectations, array $outcomes): array |
||
53 |