| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 52 | public function testUnexpectedObject() : void |
||
| 53 | { |
||
| 54 | $collection = new Fixture\BarDtoCollection(); |
||
| 55 | |||
| 56 | $this->expectException(InvalidArgumentException::class); |
||
| 57 | $this->expectExceptionMessage('The <' . Fixture\BarDtoCollection::class . '> collection ' . |
||
| 58 | 'must contain only the <' . Fixture\BarDto::class . '> objects.'); |
||
| 59 | |||
| 60 | $collection->add(new Fixture\BazDto()); |
||
| 61 | } |
||
| 63 |