Nelmio\Alice\Generator\Hydrator\Property\SymfonyPropertyAccessorHydratorTest::testTestObjectHydrationAgainstMutlipleValues PHP Method

testTestObjectHydrationAgainstMutlipleValues() public method

public testTestObjectHydrationAgainstMutlipleValues ( Property $property )
$property Nelmio\Alice\Definition\Property
    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);
    }