Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | /** |
||
16 | * @param CollectorInterface|ValidatorCollector $collector |
||
17 | */ |
||
18 | protected function collectTestData(CollectorInterface $collector): void |
||
19 | { |
||
20 | $collector->collect(1, (new Result())->addError('Too low', ['arg1' => 'v1']), [new Number(min: 7)]); |
||
|
|||
21 | $collector->collect(10, new Result(), [new Number(min: 7)]); |
||
22 | } |
||
23 | |||
24 | protected function getCollector(): CollectorInterface |
||
25 | { |
||
26 | return new ValidatorCollector(); |
||
27 | } |
||
28 | |||
68 |