| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function testAdd() : void |
||
| 23 | { |
||
| 24 | $store = [ |
||
| 25 | new Fixtures\Bar(), |
||
| 26 | new Fixtures\Bar(), |
||
| 27 | new Fixtures\Bar(), |
||
| 28 | ]; |
||
| 29 | |||
| 30 | $collection = new Fixtures\BarCollection(); |
||
| 31 | |||
| 32 | $collection->add(0, $store[0]); |
||
| 33 | $collection->add(1, $store[1]); |
||
| 34 | $collection->add(2, $store[2]); |
||
| 35 | |||
| 36 | $this->assertSame($store, $collection->all()); |
||
| 37 | } |
||
| 50 |