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

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

    public function domainObjectWithVirtualPropertiesCanBeCreated()
    {
        $source = ['name' => 'Robert Skaarhoj', 'yearOfBirth' => '1988', 'averageNumberOfKids' => '1.5'];
        $result = $this->propertyMapper->convert($source, Fixtures\TestEntity::class);
        $this->assertSame('Robert Skaarhoj', $result->getName());
        $this->assertSame(25, $result->getAge());
        $this->assertSame(1.5, $result->getAverageNumberOfKids());
    }