[1000.0], '1789129800' => ['x'], '1789133400' => [1013.5]], new \DateTimeZone('UTC'), 'hpa'); self::assertSame([['at' => '2026-09-11T13:30:00+00:00', 'hpa' => 1013.5]], $points); } public function testTheValueFieldIsNamedPerMeasurement(): void { $body = ['1789129800' => [16.4], '1789131600' => [16.9]]; $temps = MeasureSeries::map($body, new \DateTimeZone('Europe/Berlin'), 'temp'); self::assertSame(['at', 'temp'], array_keys($temps[0])); self::assertSame(16.4, $temps[0]['temp']); self::assertSame(16.9, $temps[1]['temp']); } }