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

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

    public function valueobjectCanBeMapped()
    {
        $source = ['__identity' => 'abcdefghijkl', 'name' => 'Christopher', 'age' => '28'];
        $result = $this->propertyMapper->convert($source, Fixtures\TestValueobject::class);
        $this->assertSame('Christopher', $result->getName());
        $this->assertSame(28, $result->getAge());
    }