'1', 'newBrightness' => '11', 'newContrast' => '22', 'newHue' => '33', 'newColour' => '44'); run_action($all); check('all four sliders posted: no PHP warning', $php_warnings, array()); check('all four sliders posted: values passed to zmu', $zmu_args, " -m '1' -B'11' -C'22' -H'33' -O'44'"); $noHue = $all; unset($noHue['newHue']); run_action($noHue); check('no hue slider: no PHP warning', $php_warnings, array()); check('no hue slider: bare -H reads the current hue', $zmu_args, " -m '1' -B'11' -C'22' -H'' -O'44'"); check('no hue slider: what zmu reports is still stored', count($queries), 1); $onlyBrightness = array('mid' => '1', 'newBrightness' => '11'); run_action($onlyBrightness); check('only brightness posted: no PHP warning', $php_warnings, array()); @unlink($stubdir.'/includes/Monitor.php'); @rmdir($stubdir.'/includes'); @rmdir($stubdir); echo $failures ? "\n$failures failed\n" : "\nall passed\n"; exit($failures ? 1 : 0); }