| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 32 | public function testAdd() : void |
||
| 33 | { |
||
| 34 | $store = [ |
||
| 35 | new Fixture\BarDto(), |
||
| 36 | new Fixture\BarDto(), |
||
| 37 | new Fixture\BarDto(), |
||
| 38 | ]; |
||
| 39 | |||
| 40 | $collection = new HydrableObjectCollection(); |
||
| 41 | |||
| 42 | $collection->add($store[0]); |
||
| 43 | $collection->add($store[1]); |
||
| 44 | $collection->add($store[2]); |
||
| 45 | |||
| 46 | $this->assertSame($store, $collection->getIterator()->getArrayCopy()); |
||
| 47 | } |
||
| 63 |