| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function testHydrate() |
||
| 24 | { |
||
| 25 | $entity = m::mock(EntityInterface::class); |
||
| 26 | $entity->property1 = 'not hydrated'; |
||
|
|
|||
| 27 | |||
| 28 | $hydrator = new EntityHydrator(); |
||
| 29 | $entity = $hydrator->hydrate($entity, ['property1' => 'hydrated']); |
||
| 30 | |||
| 31 | $this->assertInstanceOf(EntityInterface::class, $entity); |
||
| 32 | $this->assertEquals('hydrated', $entity->property1); |
||
| 33 | } |
||
| 35 |