| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function testUnexpectedObject() : void |
||
| 40 | { |
||
| 41 | $collection = new Fixtures\BarCollection(); |
||
| 42 | |||
| 43 | $this->expectException(InvalidArgumentException::class); |
||
| 44 | $this->expectExceptionMessage('The <' . Fixtures\BarCollection::class . '> collection ' . |
||
| 45 | 'must contain the <' . Fixtures\Bar::class . '> objects only.'); |
||
| 46 | |||
| 47 | $collection->add(0, new Fixtures\Foo()); |
||
| 48 | } |
||
| 50 |