Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function testBase(): void |
||
18 | { |
||
19 | $validator = new Validator(new SimpleRuleHandlerContainer(), new Translator()); |
||
20 | $collector = new ValidatorCollector(); |
||
21 | |||
22 | $proxy = new ValidatorInterfaceProxy($validator, $collector); |
||
23 | |||
24 | $collector->startup(); |
||
25 | $proxy->validate(1, [new Number(min: 7)]); |
||
26 | |||
27 | $this->assertSame( |
||
28 | ['validator' => ['total' => 1, 'valid' => 0, 'invalid' => 1]], |
||
29 | $collector->getIndexData() |
||
30 | ); |
||
33 |