public hydrate ( Nelmio\Alice\ObjectInterface $object, |
||
$object | Nelmio\Alice\ObjectInterface | |
$property | ||
$context | ||
리턴 | 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); }