'retain bootstrapped menu']; $image_types = [1 => 'PNG', 3 => 'SVG']; try { $graph = [ 'auto_scale' => '', 'upper_limit' => '', 'lower_limit' => '', 'auto_scale_log' => '', 'scale_log_units' => '', 'auto_scale_rigid' => '', 'unit_value' => '', 'unit_exponent_value' => '', 'height' => '100', 'width' => '200', 'image_format_id' => 1, ]; foreach ([1, 3, 1] as $format) { $graph['image_format_id'] = $format; $data = []; $options = rrd_function_process_graph_options(1700000000, 1700003600, $graph, $data); expect($options)->toContain('--imgformat=' . $image_types[$format]) ->and($menu)->toBe(['fixture' => 'retain bootstrapped menu']); } } finally { $menu = $original; $image_types = $original_types; } });