| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | public function testConstructor() |
||
| 16 | { |
||
| 17 | $loaderProphecy = $this->prophesize(LoaderInterface::class)->reveal(); |
||
| 18 | |||
| 19 | $transformer = new EntityCollectionTransformer($loaderProphecy); |
||
| 20 | |||
| 21 | $reflection = new \ReflectionProperty(EntityCollectionTransformer::class, 'loader'); |
||
| 22 | $reflection->setAccessible(true); |
||
| 23 | $loader = $reflection->getValue($transformer); |
||
| 24 | |||
| 25 | $this->assertEquals($loaderProphecy, $loader); |
||
| 26 | } |
||
| 27 | |||
| 38 | } |