= 8.1 */ final class ReadonlyMappingTest extends IntegrationTest { public function test_single_property_and_constructor_parameter_are_mapped_properly(): void { try { $object = $this->mapperBuilder->mapper()->map(ReadonlyValues::class, [ 'value' => 'foo', ]); } catch (MappingError $error) { $this->mappingFail($error); } self::assertSame('foo', $object->value); } }