| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function testMappingIsValid(): void |
||
| 13 | { |
||
| 14 | $em = _em(); |
||
| 15 | $validator = new SchemaValidator($em); |
||
| 16 | |||
| 17 | $result = ''; |
||
| 18 | $errors = $validator->validateMapping(); |
||
| 19 | foreach ($errors as $className => $errorMessages) { |
||
| 20 | $result .= $className . ':' . PHP_EOL; |
||
| 21 | foreach ($errorMessages as $e) { |
||
| 22 | $result .= $e . PHP_EOL; |
||
| 23 | } |
||
| 24 | $result .= PHP_EOL; |
||
| 25 | } |
||
| 26 | |||
| 27 | self::assertSame('', trim($result), 'should have valid mapping'); |
||
| 28 | } |
||
| 42 |