create('value'); self::assertInstanceOf( $type, StringType::class, ); } public function testGetIntegerType(): void { $type = (new MapperType(MapperType::INTEGER))->create(1); self::assertInstanceOf( $type, IntegerType::class, ); } public function testGetIntType(): void { $type = (new MapperType(MapperType::INT))->create(1); self::assertInstanceOf( $type, IntegerType::class, ); } }