| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function testValidationFailed( |
||
| 31 | mixed $data, |
||
| 32 | array|RuleInterface|null $rules, |
||
| 33 | array $errorMessagesIndexedByPath |
||
| 34 | ): void { |
||
| 35 | $result = (new Validator())->validate($data, $rules); |
||
| 36 | |||
| 37 | $this->assertFalse($result->isValid()); |
||
| 38 | $this->assertSame($errorMessagesIndexedByPath, $result->getErrorMessagesIndexedByPath()); |
||
| 39 | } |
||
| 41 |