| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function testCreatesFromViolations(): void |
||
| 14 | { |
||
| 15 | $exception = InvalidEntityException::fromViolations( |
||
| 16 | new EntityViolation('foo', 'bar'), |
||
| 17 | new EntityViolation('baz', 'bar'), |
||
| 18 | ); |
||
| 19 | |||
| 20 | $this->assertSame('foo: bar; baz: bar', $exception->getMessage()); |
||
| 21 | $this->assertCount(2, $exception->getErrors()); |
||
| 22 | } |
||
| 24 |