getHistory(1.25, 2.5, 42.5, 12.3, [ ['mount' => '/', 'used' => 1024 * 1024 * 1024], ['mount' => '/boot', 'used' => 512 * 1024 * 1024], ]); $this->assertArrayHasKey('swap', $history); $this->assertArrayHasKey('iowait', $history); $this->assertArrayHasKey('disk', $history); $this->assertArrayHasKey('/', $history['disk']); $this->assertArrayHasKey('/boot', $history['disk']); $this->assertCount(count($history['labels']), $history['swap']); $this->assertCount(count($history['labels']), $history['iowait']); } }