hydrate() public method

public hydrate ( Nelmio\Alice\ObjectInterface $object, Property $property, GenerationContext $context ) : Nelmio\Alice\ObjectInterface
$object Nelmio\Alice\ObjectInterface
$property Nelmio\Alice\Definition\Property
$context Nelmio\Alice\Generator\GenerationContext
return Nelmio\Alice\ObjectInterface
 /**
  * @dataProvider provideProperties
  */
 public function testTestObjectHydrationAgainstMutlipleValues(Property $property)
 {
     $instance = new Dummy();
     $object = new SimpleObject('dummy', $instance);
     $hydratedObject = $this->hydrator->hydrate($object, $property, new GenerationContext());
     $expected = $property->getValue();
     $actual = $this->propertyAccessor->getValue($hydratedObject->getInstance(), $property->getName());
     $this->assertSame($expected, $actual);
 }