Neos\Flow\Tests\Functional\Property\PropertyMapperTest::embeddedValueobjectCanBeMapped PHP Метод

embeddedValueobjectCanBeMapped() публичный Метод

    public function embeddedValueobjectCanBeMapped()
    {
        $source = array('name' => 'Christopher', 'age' => '28');
        $result = $this->propertyMapper->convert($source, \Neos\Flow\Tests\Functional\Property\Fixtures\TestEmbeddedValueobject::class);
        $this->assertSame('Christopher', $result->getName());
        $this->assertSame(28, $result->getAge());
    }